OutputStream

A stream interface that allows to write data into it. Methods shouldn't throw on full disk, may throw on a more serious error

Members

Functions

flush
void flush()

Implementation-specific method. Usually it writes any unwritten data from output buffer

writeArray
bool writeArray(T[] array)

Attempts to write an array. Returns true if all elements were written, false otherwise

writeBE
bool writeBE(T value)

Writes an integer in big-endian encoding

writeBytes
size_t writeBytes(void* buffer, size_t count)

Attempts to write count bytes from the memory pointed by buffer. Returns number of bytes actually written

writeLE
bool writeLE(T value)

Writes an integer in little-endian encoding

writeStringz
bool writeStringz(string text)

Attempts to write a string as zero-terminated. Returns true if entire string was written, false otherwise

writeable
bool writeable()

Returns true if stream can be written to, false otherwise

Inherited Members

From Stream

close
void close()

Closes the stream. Closed stream cannot be read or written any more

seekable
bool seekable()

Returns true if it is legal to use Seekable functionality on this stream

Meta