Interface Seekable

Seekable stream interface

interface Seekable ;

Properties

NameTypeDescription
getPosition[get] ulongReturns current position

Methods

NameDescription
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.