#include <diameter_parser_api.h>
Public Member Functions | |
void | Release () |
Static Public Member Functions | |
AAAMessageBlock * | Acquire (char *buf, ACE_UINT32 s) |
AAAMessageBlock * | Acquire (ACE_UINT32 s) |
AAAMessageBlock * | Acquire (AAAMessageBlock *b) |
Protected Member Functions | |
AAAMessageBlock (char *buf, ACE_UINT32 s) | |
AAAMessageBlock (ACE_UINT32 s) | |
AAAMessageBlock (AAAMessageBlock *b) | |
void * | operator new (size_t s) |
void | operator delete (void *p) |
AAAMessageBlock is a class for containing raw data.
Offset contains the current pointer location relative to the address of data. Offset is set only after "write" operation and not updated for "read" operation.
|
A message block is created with pointing to the buffer location and having a specified size.
|
|
A message block consisting of null characters of the specified size is created.
|
|
A shallow-copy constractor. This constructor just duplicates (ie. a shallow copy) the data block of the incoming Message Block, since the incoming Message Block always has a data block has a data block allocated from the heap. |
|
Acquire by duplication. Referece count of the original message data is incremented by one.
|
|
Acquire by allocation. A new message block of specified size is created.
|
|
Acquire by reference. The message block points to the specified location with the size set to the specified value.
|
|
Abstracted delete operator
|
|
Abstracted new operator
|
|
Release function. Referece count of the message data is decremented by one. If the reference count becomes 0, the entire message block is deleted. It is definitely more efficient to directly call release(). |