Home / Open source / Terimber 2.0
paged_buffer Class Referencehigh-performance resizable buffer of bytes
More...
#include <common.h>
List of all members.
Detailed Description
high-performance resizable buffer of bytes
Definition at line 250 of file common.h.
Constructor & Destructor Documentation
paged_buffer::~paged_buffer |
( |
|
) |
|
Member Function Documentation
paged_buffer & paged_buffer::operator<< |
( |
const char * |
x |
) |
[inline] |
const char * paged_buffer::persist |
( |
|
) |
[inline] |
persists paged blocks into one permanent block
Definition at line 709 of file common.hpp.
References _buffer, _persist(), _pos, _primary, and base_list< T >::empty().
Referenced by xml_processor::_parseCharData(), xml_processor::parseCDATA(), byte_manager::parseComment(), dtd_processor::parseEntityDef(), xml_processor::parseGeneralReference(), byte_manager::parseName(), dtd_processor::parsePEReference(), byte_manager::parsePI(), byte_manager::parseQuotedValue(), byte_manager::parseValue(), and tokenValues().
const ub1_t * paged_buffer::persist |
( |
size_t & |
size_ |
) |
[inline] |
void paged_buffer::reset |
( |
|
) |
[inline] |
persists paged blocks into one permanent block (internal allocator) if internally only one block has been allocated then class dosn't make a copy - it simply returns the pointer
Definition at line 742 of file common.hpp.
References _buffer, _pos, _primary, _ptr, and base_list< T >::clear().
Referenced by xml_processor::_parseCharData(), xml_processor::parseCDATA(), byte_manager::parseComment(), dtd_processor::parseEntityDef(), xml_processor::parseGeneralReference(), byte_manager::parseName(), dtd_processor::parsePEReference(), byte_manager::parsePI(), byte_manager::parseQuotedValue(), byte_manager::parseValue(), byte_manager::reset_all_tmp(), byte_manager::resolveEntity(), and tokenValues().
size_t paged_buffer::size |
( |
|
) |
const [inline] |
size_t paged_buffer::get_page_size |
( |
|
) |
const [inline] |
void paged_buffer::add_page |
( |
|
) |
[private] |
adds page
Definition at line 374 of file common.cpp.
References _buffer, _pos, _ptr, _size, _tmp_allocator, base_list< T >::back(), base_vector< T >::begin(), _list< T, A >::push_back(), and _vector< T, A >::resize().
Referenced by append(), and operator<<().
const ub1_t * paged_buffer::_persist |
( |
size_t & |
size_ |
) |
[private] |
const char * paged_buffer::_persist |
( |
|
) |
[private] |
Member Data Documentation
The documentation for this class was generated from the following files:
|
|