imgIDecoder

IID:9eebf43a-1dd1-11b2-953e-f1782f4cbad3
Inherits From:nsISupports

ImgIDecoder interface

This interface is implemented by the following components:


Methods

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.

Arguments:
load

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.

Arguments:
inStr
count: the maximun number of bytes to write
Returns:
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 XULPlanet.com