Search completed in 1.20 seconds.
1 results for "nswritesegmentfun":
nsIInputStream
Mozilla › Tech › XPCOM › Reference › Interface › nsIInputStream
ase that a blocking input stream should be implemented using thread-safe AddRef and Release. Method overview unsigned long available();Deprecated since Gecko 17.0 unsigned long long available(); void close(); boolean isNonBlocking(); unsigned long read(in charPtr aBuf, in unsigned long aCount); Native code only! unsigned long readSegments(in nsWriteSegmentFun aWriter, in voidPtr aClosure, in unsigned long aCount); Native code only! Methods available() Determine number of bytes available in the stream. In addition to the number of bytes available in the stream, this method also informs the caller of the current status of the stream. A stream that is closed will throw an exception when this method is called. That enables the caller to know the...
...his exception may only be thrown if isNonBlocking() returns true. Native code only!readSegments This method provides direct access to the stream's internal buffer. Note: A nsIInputStream is not required to implement this method. In some contexts, readSegments may be guaranteed to be implemented, but in general it is not. This method serves as an optimization. unsigned long readSegments( in nsWriteSegmentFun aWriter, in voidPtr aClosure, in unsigned long aCount ); Parameters aWriter The "consumer" of the data to be read. A callback function that may be called once for each buffer segment contained in the stream. See nsWriteSegmentFun for more details on this function. aClosure A parameter that is passed to aWriter each time it is called. aCount The maximum number of bytes to read from t...