Thread portable class


Gate portable class


Timer class


Pool class


Terimber 2.0


About C++


Downloads Products & Services Support Clients Open Source About



Home / Open source / Terimber 2.0

stream_input_memory Class Reference

buffer in memory interface of stream More...

#include <miscxml.h>

Inheritance diagram for stream_input_memory:

byte_source

List of all members.

Public Member Functions

 stream_input_memory (const ub1_t *buffer, size_t size, mem_pool_t &small_pool, mem_pool_t &big_pool, size_t xml_size, bool subset)
 constructor

Protected Member Functions

virtual bool data_request (ub1_t *buf, size_t &len)
 gets actual bytes from buffer

Private Attributes

const ub1_t_external_buffer
 pointer to the external memory buffer
size_t _external_size
 buffer size
size_t _external_pos
 current position


Detailed Description

buffer in memory interface of stream

Definition at line 106 of file miscxml.h.


Constructor & Destructor Documentation

stream_input_memory::stream_input_memory ( const ub1_t buffer,
size_t  size,
mem_pool_t small_pool,
mem_pool_t big_pool,
size_t  xml_size,
bool  subset 
)

constructor

Parameters:
buffer  input pointer to memory buffer
size  buffer size
small_pool  small memory pool
big_pool  big memory pool
xml_size  xml size - just a tip
subset  subset flag

Definition at line 558 of file miscxml.cpp.


Member Function Documentation

bool stream_input_memory::data_request ( ub1_t buf,
size_t &  len 
) [protected, virtual]

gets actual bytes from buffer

Parameters:
buf  pre-allocated buffer
len  [in,out] [in] buffer length, [out] obtained bytes

Implements byte_source.

Definition at line 567 of file miscxml.cpp.

References _external_buffer, _external_pos, and _external_size.


Member Data Documentation

pointer to the external memory buffer

Definition at line 127 of file miscxml.h.

Referenced by data_request().

buffer size

Definition at line 128 of file miscxml.h.

Referenced by data_request().

current position

Definition at line 129 of file miscxml.h.

Referenced by data_request().


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


© Copyright Terimber 2003-.