MIRA
Public Types | Public Member Functions | List of all members
BinaryBufferStreamBase Class Reference

Although this class is not a template we must keep its methods inline for performance reasons! write() and read() are called very often! More...

#include <stream/BinaryStream.h>

Inheritance diagram for BinaryBufferStreamBase:
Inheritance graph
[legend]

Public Types

typedef Buffer< uint8 > buffer_type
 
typedef buffer_type::value_type char_type
 
typedef std::size_t pos_type
 

Public Member Functions

 BinaryBufferStreamBase (buffer_type *buffer)
 
buffer_typerdbuf ()
 
void write (const char *data, std::size_t size)
 
void read (char *data, std::size_t size)
 
std::size_t tellg () const
 
BinaryBufferStreamBaseseekg (std::size_t pos)
 
std::size_t tellp () const
 
BinaryBufferStreamBaseseekp (std::size_t pos)
 
bool eof () const
 
bool fail () const
 

Detailed Description

Although this class is not a template we must keep its methods inline for performance reasons! write() and read() are called very often!

Member Typedef Documentation

◆ buffer_type

typedef Buffer<uint8> buffer_type

◆ char_type

◆ pos_type

typedef std::size_t pos_type

Constructor & Destructor Documentation

◆ BinaryBufferStreamBase()

BinaryBufferStreamBase ( buffer_type buffer)
inline

Member Function Documentation

◆ rdbuf()

buffer_type* rdbuf ( )
inline

◆ write()

void write ( const char *  data,
std::size_t  size 
)
inline

◆ read()

void read ( char *  data,
std::size_t  size 
)
inline

◆ tellg()

std::size_t tellg ( ) const
inline

◆ seekg()

BinaryBufferStreamBase& seekg ( std::size_t  pos)
inline

◆ tellp()

std::size_t tellp ( ) const
inline

◆ seekp()

BinaryBufferStreamBase& seekp ( std::size_t  pos)
inline

◆ eof()

bool eof ( ) const
inline

◆ fail()

bool fail ( ) const
inline

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