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::omemstream Class Reference

#include <stream.h>

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

Public Member Functions

 omemstream (uint8_t *data, size_t size)
 
 omemstream (char *data, size_t size)
 
int overflow (int ch) __OVERRIDE
 
size_t remains () const
 
uint8_t * mem () const
 
char * chr () const
 
size_t len () const
 

Private Member Functions

 __DELETE_DEFAULTS (omemstream)
 

Private Attributes

size_t count
 
uint8_t * pos
 
uint8_t * bp
 
bool zb
 

Detailed Description

Stream class to write to memory buffer.

Definition at line 492 of file stream.h.

Constructor & Destructor Documentation

◆ omemstream() [1/2]

ucommon::omemstream::omemstream ( uint8_t *  data,
size_t  size 
)
explicit

Definition at line 827 of file stream.cpp.

References bp, count, mem(), pos, and zb.

◆ omemstream() [2/2]

ucommon::omemstream::omemstream ( char *  data,
size_t  size 
)

Definition at line 816 of file stream.cpp.

References bp, count, mem(), pos, and zb.

Member Function Documentation

◆ __DELETE_DEFAULTS()

ucommon::omemstream::__DELETE_DEFAULTS ( omemstream  )
private

◆ chr()

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

Definition at line 515 of file stream.h.

◆ len()

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

Definition at line 519 of file stream.h.

◆ mem()

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

Definition at line 511 of file stream.h.

Referenced by omemstream().

◆ overflow()

int ucommon::omemstream::overflow ( int  ch)

Definition at line 836 of file stream.cpp.

References ch, count, EOF, pos, PUT, and zb.

◆ remains()

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

Definition at line 507 of file stream.h.

Member Data Documentation

◆ bp

uint8_t * ucommon::omemstream::bp
private

Definition at line 498 of file stream.h.

Referenced by omemstream().

◆ count

size_t ucommon::omemstream::count
private

Definition at line 497 of file stream.h.

Referenced by omemstream(), and overflow().

◆ pos

uint8_t* ucommon::omemstream::pos
private

Definition at line 498 of file stream.h.

Referenced by omemstream(), and overflow().

◆ zb

bool ucommon::omemstream::zb
private

Definition at line 499 of file stream.h.

Referenced by omemstream(), and overflow().


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