Interface Seekable
Seekable stream interface
interface Seekable
;
Properties
| Name | Type | Description |
|---|---|---|
getPosition[get]
|
ulong | Returns current position |
Methods
| Name | Description |
|---|---|
position
(pos)
|
Attempts to set current position to pos. Throws SeekException on failure |
seek
(amount)
|
Relatively changes position. amount defines an offset from the current position (can be negative). Throws SeekException on failure |
setPosition
(pos)
|
Attempts to set current position to pos. Returns true on success, false on failure |
size
()
|
Returns the size of a stream in bytes |
Description
Represents a stream container that knows the size of a stream and allows to change byte position within the stream.