TruncatableStream

Extended form of a RandomAccessStream that supports truncation/extension.

interface TruncatableStream : RandomAccessStream {}

Members

Functions

truncate
void truncate(ulong size)

Truncates or extends the size of the stream

Inherited Members

From RandomAccessStream

size
ulong size [@property getter]

Returns the total size of the file.

readable
bool readable [@property getter]

Determines if this stream is readable.

writable
bool writable [@property getter]

Determines if this stream is writable.

seek
void seek(ulong offset)

Seeks to a specific position in the file if supported by the stream.

tell
ulong tell()

Returns the current offset of the file pointer

Meta