StdInFileStream

InputStream 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.
getPosition
StreamPos getPosition()
Undocumented in source. Be warned that the author may not have intended to support it.
readBytes
size_t readBytes(void* buffer, size_t count)
Undocumented in source. Be warned that the author may not have intended to support it.
readable
bool readable()
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 p)
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.

Variables

_size
StreamSize _size;
Undocumented in source.
eof
bool eof;
Undocumented in source.
file
FILE* file;
Undocumented in source.

Inherited Members

From InputStream

readable
bool readable()

Returns true if there are any data to read. false means end of the stream.

readBytes
size_t readBytes(void* buffer, size_t count)

Attempts to read count bytes from stream and stores them in memory pointing by buffer. Returns number of bytes actually read

fillArray
bool fillArray(T[] array)

Attempts to fill an array with raw data from stream. Returns true if the array was filled, false otherwise

readLE
bool readLE(T* value)

Reads little-endian integer, converts to native-endian and stores in value

readBE
bool readBE(T* value)

Reads big-endian integer, converts to native-endian and stores in value

Meta