|
|
A generic container for an array of bytes.
bufferStore provides an array of bytes which can be accessed using various types.
|
Constructs a new bufferStore.
|
Constructs a new bufferStore and initializes its content.
Parameters:
~ |
Destroys a bufferStore instance.
|
Constructs a new bufferStore and initializes its content.
Parameters:
bufferStore & |
Copies a bufferStore.
unsigned long |
[const]
Retrieves the length of a bufferStore.
Returns: The current length of the contents in bytes.
unsigned char |
[const]
Retrieves the byte at index <em>pos</em>.
Parameters:
Returns: The value of the byte at index <em>pos</em>
u_int16_t |
[const]
Retrieves the word at index <em>pos</em>.
Parameters:
Returns: The value of the word at index <em>pos</em>
u_int32_t |
[const]
Retrieves the dword at index <em>pos</em>.
Parameters:
Returns: The value of the dword at index <em>pos</em>
const char * |
[const]
Retrieves the characters at index <em>pos</em>.
Parameters:
Returns: A pointer to characters at index <em>pos</em>
void |
Removes bytes from the start of the buffer.
Parameters:
friend ostream & |
Prints a dump of the content.
Mainly used for debugging purposes.
Parameters:
Returns: The stream.
bool |
[const]
Tests if the bufferStore is empty.
Returns: true, if the bufferStore is empty. false, if it contains data.
void |
Initializes the bufferStore.
All data is removed, the length is reset to 0.
void |
Initializes the bufferStore with a given data.
Parameters:
void |
Appends a byte to the content of this instance.
Parameters:
void |
Appends a word to the content of this instance.
Parameters:
void |
Appends a dword to the content of this instance.
Parameters:
void |
Appends a string to the content of this instance.
The trailing zero byte is <em>not</em> copied to the content.
Parameters:
void |
Appends a string to the content of this instance.
The trailing zero byte <em>is</em> copied to the content.
Parameters:
void |
Appends data to the content of this instance.
Parameters:
void |
Appends data to the content of this instance.
Parameters:
void |
Truncates the buffer. If the buffer is smaller, does nothing.
Parameters:
Generated by: felfert@floh.fe.think on Mon Jul 23 21:42:43 2001, using kdoc 2.0a40. |