Optional
aInstancePtr: objectA run time mechanism for interface discovery.
NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.
aInstancePtr must not be null.
[in] A requested interface IID
[out] A pointer to an interface pointer to receive the result.
Read data from the stream.
WARNING: If the data contains a null byte, then this method will return a truncated string.
the data, which will be an empty string if the stream is at EOF.
NS_BASE_STREAM_CLOSED if called after the stream has been closed
NS_ERROR_NOT_INITIALIZED if init was not called
the maximum number of bytes to read
Read data from the stream, including NULL bytes.
the data from the stream, which will be an empty string if EOF has been reached.
NS_BASE_STREAM_WOULD_BLOCK if reading from the input stream would block the calling thread (non-blocking mode only).
NS_ERROR_FAILURE if there are not enough bytes available to read aCount amount of data.
the maximum number of bytes to read.
Generated using TypeDoc
nsIScriptableInputStream provides scriptable access to an nsIInputStream instance.