A bass class for PDUs and other network messages.
More...
Protected Member Functions |
| | DtBaseMsg () |
| | Constructor Object is not fully constructed until initMsg is called.
|
| void | initMsg (int size, DtBufferPtr bufferPtr) |
| void | initMsg (const void *initial, int size, DtBufferPtr bufferPtr) |
| virtual void | changeSize (int size) |
| | Changes the size of the message.
|
| virtual void | insertBytes (int offset, int numBytes) |
| | Inserts numBytes zeroed-out bytes at the indicated offset into the net rep.
|
| virtual void | insertBytes (void *address, int numBytes) |
| | Inserts numBytes zeroed-out bytes at the indicated address.
|
| virtual void | deleteBytes (int offset, int numBytes) |
| | Deletes numBytes bytes at the indicated offset in the net rep.
|
| virtual void | deleteBytes (void *address, int numBytes) |
| | Deletes numBytes bytes starting at the indicated address.
|
| virtual void | clearAll () |
| | Zeros out all bytes in the network representation.
|
| virtual void * | newInternalBuffer (int size) |
| | Sets myInternalBuff to point to a malloc'ed buffer of size bytes.
|
| virtual void | sizeChanged (int size)=0 |
| | Called by changeSize.
|
Detailed Description
A bass class for PDUs and other network messages.
Constructor & Destructor Documentation
| virtual DtBaseMsg::~DtBaseMsg |
( |
| ) |
|
|
virtual |
Constructor Object is not fully constructed until initMsg is called.
Member Function Documentation
| virtual void DtBaseMsg::changeSize |
( |
int |
size | ) |
|
|
protectedvirtual |
Changes the size of the message.
If we are using an external buffer, assumes that the full buffer size is big enough to accommodate the new msg size. If using an internal buffer, the call may result in allocating a new internal buffer, and copying data from the old to the new buffer.
| virtual void DtBaseMsg::clearAll |
( |
| ) |
|
|
protectedvirtual |
Zeros out all bytes in the network representation.
| virtual void DtBaseMsg::deleteBytes |
( |
int |
offset, |
|
|
int |
numBytes |
|
) |
| |
|
protectedvirtual |
Deletes numBytes bytes at the indicated offset in the net rep.
Uses change size to decrease the size of the buffer.
| virtual void DtBaseMsg::deleteBytes |
( |
void * |
address, |
|
|
int |
numBytes |
|
) |
| |
|
protectedvirtual |
Deletes numBytes bytes starting at the indicated address.
Assumes that address falls within the net rep. Uses changeSize to decrease the size of the buffer.
| void DtBaseMsg::initMsg |
( |
int |
size, |
|
|
DtBufferPtr |
bufferPtr |
|
) |
| |
|
protected |
| void DtBaseMsg::initMsg |
( |
const void * |
initial, |
|
|
int |
size, |
|
|
DtBufferPtr |
bufferPtr |
|
) |
| |
|
protected |
| virtual void DtBaseMsg::insertBytes |
( |
int |
offset, |
|
|
int |
numBytes |
|
) |
| |
|
protectedvirtual |
Inserts numBytes zeroed-out bytes at the indicated offset into the net rep.
Uses changeSize to increase the size of the buffer.
| virtual void DtBaseMsg::insertBytes |
( |
void * |
address, |
|
|
int |
numBytes |
|
) |
| |
|
protectedvirtual |
Inserts numBytes zeroed-out bytes at the indicated address.
Assumes that address falls within the net rep. Uses changeSize to increase the size of the buffer.
| virtual int DtBaseMsg::length |
( |
| ) |
const |
|
virtual |
| const char * DtBaseMsg::netRep |
( |
| ) |
const |
|
inlinevirtual |
| virtual void* DtBaseMsg::newInternalBuffer |
( |
int |
size | ) |
|
|
protectedvirtual |
Sets myInternalBuff to point to a malloc'ed buffer of size bytes.
Sets myIntBuffSize to size. Returns myInternalBuff. Size must be a positive number.
| virtual void DtBaseMsg::sizeChanged |
( |
int |
size | ) |
|
|
protectedpure virtual |
Called by changeSize.
Derived versions can provide definitions that set the size field in network rep.
Implemented in DtDatumRecordSet, and DtPdu.
Member Data Documentation
| int DtBaseMsg::myIntBuffSize |
|
protected |
| void* DtBaseMsg::myInternalBuff |
|
protected |
| void* DtBaseMsg::myNetMsg |
|
protected |
The documentation for this class was generated from the following file: