class Geo GeoBufferedInputStream

This is the documentation for Enlighten.

class Geo GeoBufferedInputStream

class Geo::GeoBufferedInputStream

    └>Geo::IGeoInputStream

An implementation of IGeoInputStream that uses another stream to fill an internal buffer.

Functions

Name

Description

Name

Description

~IGeoInputStream()

Deleting a stream should behave like a close operation.

GeoBufferedInputStream(IGeoInputStream &)

Constructor taking an underlying stream used to fill the buffer.

GetPosition()

Return the position of the read/write pointer within the stream (prototype matches ftell)

GetPosition()

Return the position of the read/write pointer within the stream (prototype matches ftell)

IsEof()

Is the read pointer at the end of the file (as with feof, only returns true if you have read past end)

IsEof()

Is the read pointer at the end of the file (as with feof, only returns true if you have read past end)

IsOk()

Tests if the stream is valid.

IsOk()

Tests if the stream is valid.

Read(void *, size_t, size_t)

Read data (prototype matches fread). Prefer to use the templated Read methods.

Read(T(&))

Read a fixed size array.

Read(T &)

Read a single object, returning true on success.

Read(TIter, TIter)

Read a collection of objects, returning true on success.

Read(void *, size_t, size_t)

Read data (prototype matches fread). Prefer to use the templated Read methods.

ReadImpl(T &, GeoStd::FalseType)

Read a single object, returning true on success.

ReadImpl(T &, GeoStd::TrueType)

Read a single object, returning true on success.

ReadToEnd()

Reads the stream to its end and returns the data as a char array.

SetPosition(u64)

Set the position of the read/write pointer within the stream (prototype matches fseek)

SetPosition(Geo::u64)

Set the position of the read/write pointer within the stream (prototype matches fseek)



virtual Geo::IGeoInputStream::~IGeoInputStream


public: virtual ~IGeoInputStream()


Deleting a stream should behave like a close operation.



Geo::GeoBufferedInputStream::GeoBufferedInputStream


public: GeoBufferedInputStream
(
    IGeoInputStream & stream
)


Constructor taking an underlying stream used to fill the buffer.



virtual u64 Geo::GeoBufferedInputStream::GetPosition


public: virtual u64 GetPosition() const


Return the position of the read/write pointer within the stream (prototype matches ftell)