Ark Server API (ASE) - Wiki
|
A convenient wrapper for using Buffer and MemoryStream with BinaryReader. More...
#include <BinaryReader.h>
Public Member Functions | |
BasicMemoryBinaryReader (const Buffer< T > &data, StreamByteOrder byteOrder=NATIVE_BYTE_ORDER) | |
BasicMemoryBinaryReader (const Buffer< T > &data, TextEncoding &encoding, StreamByteOrder byteOrder=NATIVE_BYTE_ORDER) | |
~BasicMemoryBinaryReader () | |
const Buffer< T > & | data () const |
const MemoryInputStream & | stream () const |
MemoryInputStream & | stream () |
Public Member Functions inherited from Poco::BinaryReader | |
BinaryReader (std::istream &istr, StreamByteOrder byteOrder=NATIVE_BYTE_ORDER) | |
BinaryReader (std::istream &istr, TextEncoding &encoding, StreamByteOrder byteOrder=NATIVE_BYTE_ORDER) | |
Creates the BinaryReader. | |
~BinaryReader () | |
BinaryReader & | operator>> (bool &value) |
Destroys the BinaryReader. | |
BinaryReader & | operator>> (char &value) |
BinaryReader & | operator>> (unsigned char &value) |
BinaryReader & | operator>> (signed char &value) |
BinaryReader & | operator>> (short &value) |
BinaryReader & | operator>> (unsigned short &value) |
BinaryReader & | operator>> (int &value) |
BinaryReader & | operator>> (unsigned int &value) |
BinaryReader & | operator>> (long &value) |
BinaryReader & | operator>> (unsigned long &value) |
BinaryReader & | operator>> (float &value) |
BinaryReader & | operator>> (double &value) |
BinaryReader & | operator>> (std::string &value) |
template<typename T > | |
BinaryReader & | operator>> (std::vector< T > &value) |
void | read7BitEncoded (UInt32 &value) |
void | readRaw (std::streamsize length, std::string &value) |
void | readRaw (char *buffer, std::streamsize length) |
Reads length bytes of raw data into value. | |
void | readBOM () |
Reads length bytes of raw data into buffer. | |
bool | good () |
bool | fail () |
Returns _istr.good();. | |
bool | bad () |
Returns _istr.fail();. | |
bool | eof () |
Returns _istr.bad();. | |
std::istream & | stream () const |
Returns _istr.eof();. | |
StreamByteOrder | byteOrder () const |
Returns the underlying stream. | |
void | setExceptions (std::ios_base::iostate st=(std::istream::failbit|std::istream::badbit)) |
std::streamsize | available () const |
Sets the stream to throw exception on specified state (default failbit and badbit);. | |
Private Attributes | |
const Buffer< T > & | _data |
MemoryInputStream | _istr |
Additional Inherited Members | |
Public Types inherited from Poco::BinaryReader | |
enum | StreamByteOrder { NATIVE_BYTE_ORDER = 1 , BIG_ENDIAN_BYTE_ORDER = 2 , NETWORK_BYTE_ORDER = 2 , LITTLE_ENDIAN_BYTE_ORDER = 3 , UNSPECIFIED_BYTE_ORDER = 4 } |
A convenient wrapper for using Buffer and MemoryStream with BinaryReader.
Definition at line 159 of file BinaryReader.h.
|
inline |
Definition at line 163 of file BinaryReader.h.
|
inline |
Definition at line 170 of file BinaryReader.h.
|
inline |
Definition at line 177 of file BinaryReader.h.
|
inline |
Definition at line 181 of file BinaryReader.h.
|
inline |
Definition at line 191 of file BinaryReader.h.
|
inline |
Definition at line 186 of file BinaryReader.h.
|
private |
Definition at line 197 of file BinaryReader.h.
|
private |
Definition at line 198 of file BinaryReader.h.