API Guides > ConceptRT 3.x
BinaryReader Class Reference

Binary reader. More...

Detailed Description

Binary reader.

Public Member Methods

 BinaryReader (Stream &stream)
 Constructor. More...
 
bool SkipByte ()
 Skip byte. More...
 
bool Read (Char8 &value)
 Reads. More...
 
bool Read (BaseStaticString &value)
 Reads. More...
 
bool Read (bool &value)
 Reads. More...
 
bool Read (Int16 &value)
 Reads. More...
 
bool Read (Int32 &value)
 Reads. More...
 
bool Read (Float32 &value)
 Reads. More...
 
bool Read (Float64 &value)
 Reads. More...
 
bool EndOfStream () const
 Query if end of stream reached. More...
 
Int32 GetPosition () const
 Gets the position. More...
 

Constructor & Destructor Documentation

BinaryReader ( Stream stream)

Constructor.

Parameters
stream[in,out] The stream.

Methods Documentation

bool EndOfStream ( ) const

Query if end of stream reached.

Returns
true if end of stream reached, false if not.
Int32 GetPosition ( ) const

Gets the position.

Returns
The position.
bool Read ( Char8 value)

Reads.

Parameters
value[in,out] The returned character.
Returns
true if it succeeds, false if it fails (eof reached).
bool Read ( BaseStaticString value)

Reads.

Parameters
value[in,out] The returned character.
Returns
true if successful (data found to the separator), false if end of stream.
bool Read ( bool &  value)

Reads.

Parameters
value[in,out] The returned value.
Returns
true if it succeeds, false if it fails.
bool Read ( Int16 value)

Reads.

Parameters
value[in,out] The returned value.
Returns
true if it succeeds, false if it fails.
bool Read ( Int32 value)

Reads.

Parameters
value[in,out] The returned value.
Returns
true if it succeeds, false if it fails.
bool Read ( Float32 value)

Reads.

Parameters
value[in,out] The returned value.
Returns
true if it succeeds, false if it fails.
bool Read ( Float64 value)

Reads.

Parameters
value[in,out] The returned value.
Returns
true if it succeeds, false if it fails.
bool SkipByte ( )

Skip byte.

Returns
true if it succeeds, false if it fails (eof reached).