ucommon  7.0.0
About: GNU uCommon C++ is a portable and optimized class framework for writing C++ applications that need to use threads and support concurrent synchronization, and that use sockets, XML parsing, object serialization, thread-optimized string and data structure classes, etc..
  Fossies Dox: ucommon-7.0.0.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

ucommon::imemstream Class Reference

#include <stream.h>

Inheritance diagram for ucommon::imemstream:
[legend]
Collaboration diagram for ucommon::imemstream:
[legend]

Public Member Functions

 imemstream (const uint8_t *data, size_t size)
 
 imemstream (const char *data)
 
int underflow () __OVERRIDE
 
int uflow () __OVERRIDE
 
size_t remains () const
 
const uint8_t * mem () const
 
const char * chr () const
 
size_t len () const
 

Private Member Functions

 __DELETE_DEFAULTS (imemstream)
 

Private Attributes

size_t count
 
const uint8_t * pos
 
const uint8_t * bp
 

Detailed Description

Stream class to read from a memory buffer. May optionally be 0 byte terminated if no length is specified.

Definition at line 456 of file stream.h.

Constructor & Destructor Documentation

◆ imemstream() [1/2]

ucommon::imemstream::imemstream ( const uint8_t *  data,
size_t  size 
)

Definition at line 859 of file stream.cpp.

References bp, count, pos, and ucommon::str().

◆ imemstream() [2/2]

ucommon::imemstream::imemstream ( const char *  data)

Definition at line 851 of file stream.cpp.

References bp, count, pos, and ucommon::str().

Member Function Documentation

◆ __DELETE_DEFAULTS()

ucommon::imemstream::__DELETE_DEFAULTS ( imemstream  )
private

◆ chr()

const char* ucommon::imemstream::chr ( ) const
inline

Definition at line 480 of file stream.h.

◆ len()

size_t ucommon::imemstream::len ( void  ) const
inline

Definition at line 484 of file stream.h.

◆ mem()

const uint8_t* ucommon::imemstream::mem ( ) const
inline

Definition at line 476 of file stream.h.

◆ remains()

size_t ucommon::imemstream::remains ( ) const
inline

Definition at line 472 of file stream.h.

◆ uflow()

int ucommon::imemstream::uflow ( void  )

Definition at line 874 of file stream.cpp.

References count, EOF, GET, and pos.

◆ underflow()

int ucommon::imemstream::underflow ( void  )

Definition at line 867 of file stream.cpp.

References count, EOF, GET, and pos.

Member Data Documentation

◆ bp

const uint8_t * ucommon::imemstream::bp
private

Definition at line 462 of file stream.h.

Referenced by imemstream().

◆ count

size_t ucommon::imemstream::count
private

Definition at line 461 of file stream.h.

Referenced by imemstream(), uflow(), and underflow().

◆ pos

const uint8_t* ucommon::imemstream::pos
private

Definition at line 462 of file stream.h.

Referenced by imemstream(), uflow(), and underflow().


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