Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
Poco::BasicMemoryBinaryReader< T > Class Template Reference

A convenient wrapper for using Buffer and MemoryStream with BinaryReader. More...

#include <BinaryReader.h>

+ Inheritance diagram for Poco::BasicMemoryBinaryReader< T >:
+ Collaboration diagram for Poco::BasicMemoryBinaryReader< T >:

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 MemoryInputStreamstream () const
 
MemoryInputStreamstream ()
 
- 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 ()
 
BinaryReaderoperator>> (bool &value)
 Destroys the BinaryReader.
 
BinaryReaderoperator>> (char &value)
 
BinaryReaderoperator>> (unsigned char &value)
 
BinaryReaderoperator>> (signed char &value)
 
BinaryReaderoperator>> (short &value)
 
BinaryReaderoperator>> (unsigned short &value)
 
BinaryReaderoperator>> (int &value)
 
BinaryReaderoperator>> (unsigned int &value)
 
BinaryReaderoperator>> (long &value)
 
BinaryReaderoperator>> (unsigned long &value)
 
BinaryReaderoperator>> (float &value)
 
BinaryReaderoperator>> (double &value)
 
BinaryReaderoperator>> (std::string &value)
 
template<typename T >
BinaryReaderoperator>> (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
}
 

Detailed Description

template<typename T>
class Poco::BasicMemoryBinaryReader< T >

A convenient wrapper for using Buffer and MemoryStream with BinaryReader.

Definition at line 159 of file BinaryReader.h.

Constructor & Destructor Documentation

◆ BasicMemoryBinaryReader() [1/2]

template<typename T >
Poco::BasicMemoryBinaryReader< T >::BasicMemoryBinaryReader ( const Buffer< T > & data,
StreamByteOrder byteOrder = NATIVE_BYTE_ORDER )
inline

Definition at line 163 of file BinaryReader.h.

◆ BasicMemoryBinaryReader() [2/2]

template<typename T >
Poco::BasicMemoryBinaryReader< T >::BasicMemoryBinaryReader ( const Buffer< T > & data,
TextEncoding & encoding,
StreamByteOrder byteOrder = NATIVE_BYTE_ORDER )
inline

Definition at line 170 of file BinaryReader.h.

◆ ~BasicMemoryBinaryReader()

template<typename T >
Poco::BasicMemoryBinaryReader< T >::~BasicMemoryBinaryReader ( )
inline

Definition at line 177 of file BinaryReader.h.

Member Function Documentation

◆ data()

template<typename T >
const Buffer< T > & Poco::BasicMemoryBinaryReader< T >::data ( ) const
inline

Definition at line 181 of file BinaryReader.h.

◆ stream() [1/2]

template<typename T >
MemoryInputStream & Poco::BasicMemoryBinaryReader< T >::stream ( )
inline

Definition at line 191 of file BinaryReader.h.

◆ stream() [2/2]

template<typename T >
const MemoryInputStream & Poco::BasicMemoryBinaryReader< T >::stream ( ) const
inline

Definition at line 186 of file BinaryReader.h.

Member Data Documentation

◆ _data

template<typename T >
const Buffer<T>& Poco::BasicMemoryBinaryReader< T >::_data
private

Definition at line 197 of file BinaryReader.h.

◆ _istr

template<typename T >
MemoryInputStream Poco::BasicMemoryBinaryReader< T >::_istr
private

Definition at line 198 of file BinaryReader.h.


The documentation for this class was generated from the following file: