32 #include "nsISupports.idl"
44 [
uuid(873ABEF5-AEE5-468
E-8896-7768A13DC9A7)]
68 [
uuid(873E0403-B0B1-4E6D-BD32-E4ED51492109)]
75 attribute PRUInt64
pos;
79 readonly attribute PRUInt64
size;
99 void skip( in PRUint64 aDistance );
106 PRUint32
read( in charPtr aBuffer, in PRUint32 aSize );
PRUint32 read(in charPtr aBuffer, in PRUint32 aSize)
Read from the buffer.
char readChar()
Read a byte from the buffer.
readonly attribute PRBool completed
If the nsIChannel has finished (by completion or error)
PRInt32 readInt32()
Read a 32bit int from the buffer.
A seekable wrapper for an nsIChannel.
attribute PRUInt64 pos
The current read position (for the read methods)
readonly attribute PRUInt64 size
The size of the file targeted by the nsIChannel.
void open(in nsIChannel aChannel, in sbISeekableChannelListener aListener)
Open the channel and start downloading the file.
A listener interface for sbISeekableChannel.
void skip(in PRUint64 aDistance)
Skip forward in the read buffer.
void close()
Close the channel and free all references.
void onChannelDataAvailable(in sbISeekableChannel aChannel)
Be thou informst that one's sbISeekableChannel has just received data.
PRInt64 readInt64()
Read a 64bit int from the buffer.