Back to index
|void||init (in imgILoad aLoad)|
|Initalize an image decoder. |
|Closes the stream. |
|Flushes the stream. |
|unsigned long||writeFrom (in nsIInputStream inStr, in unsigned long count)|
|Writes data into the stream from an input stream. |
|nsCOMPtr< imgIContainer >||mImage|
|nsCOMPtr< gfxIImageFrame >||mFrame|
|nsCOMPtr< imgIDecoderObserver >||mObserver|
|unsigned long imgIDecoder::writeFrom||(||in nsIInputStream||inStr,|
|in unsigned long||count|
Writes data into the stream from an input stream.
Implementer's note: This method is defined by this interface in order to allow the output stream to efficiently copy the data from the input stream into its internal buffer (if any). If this method was provide as an external facility, a separate char* buffer would need to be used in order to call the output stream's other Write method.
|fromStream||the stream from which the data is read|
|count||the maximun number of bytes to write|