#include <buffer.h>
Collaboration diagram for GNUMessenger::VBuffer:

Public Member Functions | |
| VBuffer () | |
| Default. The internal vector has length zero. | |
| ~VBuffer () | |
| "Secure" deallocator. | |
| VBuffer (const string &str) | |
| String constructor. | |
| VBuffer (const char *str, unsigned long length) | |
| Constant character array constructor. | |
| VBuffer (const VBuffer &buf) | |
| Copy constructor. | |
| VBuffer (byte *str, unsigned long length) | |
| Byte array constructor. | |
| void | wipe () |
| const byte * | data () const |
| Returns the data in the vector as a constant byte array Time complexity: Approx. | |
| VBuffer | operator+ (const VBuffer &buf) |
| VBuffer addition, returns a new VBuffer that is the union of two VBuffers. | |
| VBuffer & | operator= (const VBuffer &buf) |
| Assignment operator. | |
| VBuffer & | operator+= (const VBuffer &buf) |
| Concatination operator. | |
| VBuffer & | operator+= (const byte &b) |
| Appends a byte to the end of the vector. | |
| VBuffer | sub (unsigned long start, unsigned long length=0) const |
| Extracts a range of elements. | |
Definition at line 37 of file buffer.h.
|
|
"Secure" deallocator. Of course, this does not do anything if the memory was swapped to disk Definition at line 46 of file buffer.h. References GNUMessenger::scoped_array< T >::get().
Here is the call graph for this function: ![]() |
|
|
String constructor.
|
|
||||||||||||
|
Constant character array constructor. This is a deep copy.
|
|
|
Copy constructor.
|
|
||||||||||||
|
Byte array constructor.
|
|
|
Returns the data in the vector as a constant byte array Time complexity: Approx. O(N)
References GNUMessenger::scoped_array< T >::get(), and GNUMessenger::scoped_array< T >::reset().
Here is the call graph for this function: ![]() |
|
|
VBuffer addition, returns a new VBuffer that is the union of two VBuffers.
|
|
|
Concatination operator. Definition at line 146 of file buffer.h.
|
1.3.8