nsISupports
Last changed in Gecko 1.7 void seek(in long whence, in long long offset); |
void setEOF(); |
long long tell(); |
Constant | Value | Description |
NS_SEEK_SET |
0 |
Specifies that the offset is relative to the start of the stream. |
NS_SEEK_CUR |
1 |
Specifies that the offset is relative to the current position in the stream. |
NS_SEEK_END |
2 |
Specifies that the offset is relative to the end of the stream. |
This method moves the stream offset of the stream implementing this interface.
void seek( in long whence, in long long offset );
whence
offset
NS_BASE_STREAM_CLOSED
This method truncates the stream at the current offset.
void setEOF();
None.
NS_BASE_STREAM_CLOSED
This method reports the current offset, in bytes, from the start of the stream.
long long tell();
None.
The current offset, in bytes, from the start of the stream.
NS_BASE_STREAM_CLOSED