--- title: writeFrom slug: nsIOutputStream/writeFrom tags: - Справочник_XPCOM_API translation_of: Mozilla/Tech/XPCOM/Reference/Interface/nsIOutputStream/writeFrom ---
Этот метод копирует данные из nsIInputStream
в nsIOutputStream
.
unsigned long writeFrom( in nsIInputStream aSource, in unsigned long aCount );
Этот метод возвращает количество байт, записанных в поток.
isNonBlocking
returns true.nsIInputStream::readSegments
, but that is not guaranteed.A nsIOutputStream
is not required to implement this method. In some contexts, writeFrom
may be guaranteed to be implemented, but in general it is not. This method serves as an optimization.