Search completed in 1.15 seconds.
nsIOutputStream
y the case that a blocking output stream should be implemented using thread-safe AddRef and Release. Method overview void close(); void flush(); boolean isNonBlocking(); unsigned long write(in string aBuf, in unsigned long aCount); unsigned long writeFrom(in nsIInputStream aFromStream, in unsigned long aCount); unsigned long writeSegments(in
nsReadSegmentFun aReader, in voidPtr aClosure, in unsigned long aCount); Native code only! Methods close() Close the stream. Forces the output stream to flush() any buffered data. Note: This method may be called more than once, but subsequent calls are ignored. void close(); Parameters None. Exceptions thrown NS_BASE_STREAM_WOULD_BLOCK Indicates that closing the output stream would block the ca...
...p calling the reader until either there is nothing left to write or the reader returns an error. This method should not call the reader with zero bytes to provide. Note: A nsIOutputStream is not required to implement this method. In some contexts, writeSegments may be guaranteed to be implemented, but in general it is not. This method serves as an optimization. unsigned long writeSegments( in
nsReadSegmentFun aReader, in voidPtr aClosure, in unsigned long aCount ); Parameters aReader A callback function that may be called multiple times. See
nsReadSegmentFun for more details on this function. aClosure A parameter that is passed to aReader each time it is called. aCount The maximum number of bytes to write to the stream. Return value This method returns the number of bytes written to t...
...rmediate buffer copies. ...