DataSourceStreamImpl

This class represents a Stream-Based DataSource.

Constructors

this
this(File input, string name)
Undocumented in source.
this
this(string path, bool use_binary)

Construct a Stream-Based DataSource from file

Destructor

~this
~this()
Undocumented in source.

Members

Functions

endOfData
bool endOfData()
Undocumented in source. Be warned that the author may not have intended to support it.
getBytesRead
size_t getBytesRead()
Undocumented in source. Be warned that the author may not have intended to support it.
id
string id()
Undocumented in source. Be warned that the author may not have intended to support it.
peek
size_t peek(ubyte* output, size_t length, size_t offset)
Undocumented in source. Be warned that the author may not have intended to support it.
read
size_t read(ubyte* output, size_t length)
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From DataSourceImpl

read
size_t read(ubyte* output, size_t length)

Read from the source. Moves the internal offset so that every call to read will return a new portion of the source.

peek
size_t peek(ubyte* output, size_t length, size_t peek_offset)

Read from the source but do not modify the internal offset. Consecutive calls to peek() will return portions of the source starting at the same position.

endOfData
bool endOfData()

Test whether the source still has data that can be read.

id
string id()

return the id of this data source

readByte
size_t readByte(ubyte output)

Read one ubyte.

peekByte
size_t peekByte(ubyte output)

Peek at one ubyte.

discardNext
size_t discardNext(size_t n)

Discard the next N bytes of the data

getBytesRead
size_t getBytesRead()

Meta