A seekable wrapper for an nsIChannel. More...
import"sbISeekableChannel.idl";
Public Member Functions | |
| void | open (in nsIChannel aChannel, in sbISeekableChannelListener aListener) |
| Open the channel and start downloading the file. More... | |
| void | close () |
| Close the channel and free all references. More... | |
| void | skip (in PRUint64 aDistance) |
| Skip forward in the read buffer. More... | |
| PRUint32 | read (in charPtr aBuffer, in PRUint32 aSize) |
| Read from the buffer. More... | |
| char | readChar () |
| Read a byte from the buffer. More... | |
| PRInt32 | readInt32 () |
| Read a 32bit int from the buffer. More... | |
| PRInt64 | readInt64 () |
| Read a 64bit int from the buffer. More... | |
Public Attributes | |
| attribute PRUInt64 | pos |
| The current read position (for the read methods) More... | |
| readonly attribute PRUInt64 | size |
| The size of the file targeted by the nsIChannel. More... | |
| readonly attribute PRBool | completed |
| If the nsIChannel has finished (by completion or error) More... | |
A seekable wrapper for an nsIChannel.
Definition at line 70 of file sbISeekableChannel.idl.
| void sbISeekableChannel::close | ( | ) |
Close the channel and free all references.
| void sbISeekableChannel::open | ( | in nsIChannel | aChannel, |
| in sbISeekableChannelListener | aListener | ||
| ) |
Open the channel and start downloading the file.
| aChannel | The channel from which to download |
| aListener | The listener to be informed of the channel progress |
| PRUint32 sbISeekableChannel::read | ( | in charPtr | aBuffer, |
| in PRUint32 | aSize | ||
| ) |
Read from the buffer.
| aBuffer | The buffer into which to read |
| aSize | The size of the buffer in bytes |
| char sbISeekableChannel::readChar | ( | ) |
Read a byte from the buffer.
| PRInt32 sbISeekableChannel::readInt32 | ( | ) |
Read a 32bit int from the buffer.
| PRInt64 sbISeekableChannel::readInt64 | ( | ) |
Read a 64bit int from the buffer.
| void sbISeekableChannel::skip | ( | in PRUint64 | aDistance | ) |
Skip forward in the read buffer.
| aDistance | The number of bytes to skip forward in the buffer (you can pass negative numbers) |
| readonly attribute PRBool sbISeekableChannel::completed |
If the nsIChannel has finished (by completion or error)
Definition at line 83 of file sbISeekableChannel.idl.
| attribute PRUInt64 sbISeekableChannel::pos |
The current read position (for the read methods)
Definition at line 75 of file sbISeekableChannel.idl.
| readonly attribute PRUInt64 sbISeekableChannel::size |
The size of the file targeted by the nsIChannel.
Definition at line 79 of file sbISeekableChannel.idl.