Inherits From:nsISupports

ImgIDecoder interface

This interface is implemented by the following components:


void close ( ) void flush ( ) void init ( imgILoad* load ) PRUint32 writeFrom ( nsIInputStream inStr , PRUint32 count )

void close ( )

Closes the stream.

void flush ( )

Flushes the stream.

void init ( imgILoad* load )

Initalize an image decoder.


PRUint32 writeFrom ( nsIInputStream inStr , PRUint32 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.

count: the maximun number of bytes to write
aWriteCount out parameter to hold the number of bytes written. if an error occurs, the writecount is undefined

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005