StdOutFileStream

OutputStream that wraps FILE

Constructors

this
this(FILE* file)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

close
void close()
Undocumented in source. Be warned that the author may not have intended to support it.
flush
void flush()
Undocumented in source. Be warned that the author may not have intended to support it.
getPosition
StreamPos getPosition()
Undocumented in source. Be warned that the author may not have intended to support it.
seekable
bool seekable()
Undocumented in source. Be warned that the author may not have intended to support it.
setPosition
bool setPosition(StreamPos pos)
Undocumented in source. Be warned that the author may not have intended to support it.
size
StreamSize size()
Undocumented in source. Be warned that the author may not have intended to support it.
writeBytes
size_t writeBytes(void* buffer, size_t count)
Undocumented in source. Be warned that the author may not have intended to support it.
writeable
bool writeable()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_writeable
bool _writeable;
Undocumented in source.
file
FILE* file;
Undocumented in source.

Inherited Members

From OutputStream

flush
void flush()

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

writeable
bool writeable()

Returns true if stream can be written to, false otherwise

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

writeArray
bool writeArray(T[] array)

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

writeStringz
bool writeStringz(string text)

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

writeLE
bool writeLE(T value)

Writes an integer in little-endian encoding

writeBE
bool writeBE(T value)

Writes an integer in big-endian encoding

Meta