commore  1.0.6-SNAPSHOT
All Classes Namespaces Functions Variables Typedefs Enumerations Pages
commore::CommBuffer::Page Class Reference

Public Types

enum  { HEADER_SIZE = 21, NB_FLAGS = 4, VERSION = 1 }
 
enum  Flags { NO_FLAG = 'x', COMPRESSED = 'c', CRYPTED = 'i', ASCII = 'a' }
 
enum  { DECLARED_DATA_SIZE = 4 }
 

Public Member Functions

void update_header ()
 
bool update_from_header ()
 
void set_is_last_page (bool value)
 
bool is_last_page () const
 
bool push_flag (Byte flag)
 
void clear_flag (Byte flag)
 
bool has_flag (Byte flag)
 
void clear_flags ()
 
size_t get_size () const
 
Byteget () const
 

Static Public Member Functions

static bool decodeHeader (Byte *header, int *version, Byte flag[], size_t *size, int *chunkTag)
 

Public Attributes

bool is_last_page_
 
int version_
 
Byte flags_ [NB_FLAGS]
 
PCommBuffer cont_
 
size_t size_
 
size_t page_size_
 
PPage next_
 
Byte s_ [DECLARED_DATA_SIZE]
 

Member Function Documentation

static bool commore::CommBuffer::Page::decodeHeader ( Byte header,
int *  version,
Byte  flag[],
size_t *  size,
int *  chunkTag 
)
static

Update header content with current buffer size


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