#include <chain.h>
Classes | |
| struct | _record |
Public Member Functions | |
| record (const char *p, unsigned int size, bool allocated, const char *allocateddata=NULL) | |
| record (const record *r, int offset=0, int roffset=0) | |
| record (const record &r, int offset=0, int roffset=0) | |
| ~record () | |
| record & | operator= (const record &s) |
| const char * | getData (void) const |
| unsigned int | getLength (void) const |
| void | print () const |
Protected Attributes | |
| _record * | r |
| int | offset |
| int | roffset |
These are individual items of a chain.
Definition at line 44 of file chain.h.
| libglass::record::record | ( | const char * | p, | |
| unsigned int | size, | |||
| bool | allocated, | |||
| const char * | allocateddata = NULL | |||
| ) |
Construtor.
| p | The data array. | |
| size | Data size. | |
| allocated | True if data should be deleted when there are no more references to it. | |
| allocateddata | The beginning of the allocated data; if NULL, the beginning is at p. |
| libglass::record::record | ( | const record * | r, | |
| int | offset = 0, |
|||
| int | roffset = 0 | |||
| ) |
Construtor. Updates references.
| r | The record to copy from. | |
| offset | Offset from beginning of data. | |
| roffset | Offset from end of data. |
| libglass::record::record | ( | const record & | r, | |
| int | offset = 0, |
|||
| int | roffset = 0 | |||
| ) |
| libglass::record::~record | ( | ) |
| const char* libglass::record::getData | ( | void | ) | const |
Returns the data, taking offsets in consideration.
| unsigned int libglass::record::getLength | ( | void | ) | const |
Returns the data length, taking offsets in consideration.
| void libglass::record::print | ( | ) | const |
Debug.
int libglass::record::offset [protected] |
_record* libglass::record::r [protected] |
int libglass::record::roffset [protected] |
1.5.8