A buffer for elements belonging to a specific stream block. More...
#include <tpie/compressed/buffer.h>
Public Member Functions | |
compressor_buffer (memory_size_type capacity) | |
compressor_buffer_state::type | get_state () const |
void | set_state (compressor_buffer_state::type to) |
void | transition_state (compressor_buffer_state::type from, compressor_buffer_state::type to) |
bool | is_busy () |
char * | get () |
Get pointer to buffer storage. More... | |
const char * | get () const |
Get pointer to buffer storage. More... | |
memory_size_type | size () const |
Get number of bytes used to store items. More... | |
memory_size_type | capacity () const |
Get maximal byte size of buffer. More... | |
void | set_size (memory_size_type size) |
Set number of bytes used to store items. More... | |
void | set_capacity (memory_size_type capacity) |
Resize internal buffer, clearing all elements. More... | |
void | reset () |
Return buffer to a newly constructed state. More... | |
memory_size_type | get_block_size () |
stream_size_type | get_read_offset () |
void | set_block_size (memory_size_type s) |
void | set_read_offset (stream_size_type s) |
|
inline |
Get maximal byte size of buffer.
Definition at line 156 of file buffer.h.
References tpie::array< T, Allocator >::size().
|
inline |
Get pointer to buffer storage.
Definition at line 135 of file buffer.h.
References tpie::array< T, Allocator >::get().
|
inline |
Get pointer to buffer storage.
Definition at line 142 of file buffer.h.
References tpie::array< T, Allocator >::get().
|
inline |
Return buffer to a newly constructed state.
Definition at line 178 of file buffer.h.
References tpie::compressor_buffer_state::dirty.
|
inline |
Resize internal buffer, clearing all elements.
Definition at line 170 of file buffer.h.
References tpie::array< T, Allocator >::resize().
|
inline |
Set number of bytes used to store items.
Definition at line 163 of file buffer.h.
References size().
|
inline |
Get number of bytes used to store items.
Definition at line 149 of file buffer.h.
Referenced by set_size().