#include <LATdatagram.h>
Collaboration diagram for LATdatagram:
Public Types | |
enum | { ID } |
Public Member Functions | |
LATdatagram () | |
Constructor setting up identity and length defaults. | |
LATdatagram (unsigned length) | |
Constructor setting up identity and length defaults. | |
LATtypeId | identity () const |
Return the datagram's identity. | |
unsigned | length () const |
Return the datagram's size in units of bytes. | |
LATdatagram * | next () const |
Return the next datagram in the list of LATdatagrams. | |
unsigned | payloadSize () const |
Return the size of the datagram's payload in units of bytes. | |
LATcontribution * | payload () const |
Return a pointer to the start of the datagram's payload. | |
EBFevent * | event () const |
Return a pointer to the datagram's payload cast as an EBFevent. | |
unsigned char * | alloc (unsigned size) |
Method for allocating additional space in a datagram. | |
void * | operator new (size_t) |
Allocate a default LATdatagram off the memory heap. | |
void * | operator new (size_t, unsigned length) |
Allocate a LATdatagram with space for a payload off the memory heap. | |
void * | operator new (size_t, const LATdatagram &) |
Copy a LATdatagram to a new one. | |
void * | operator new (size_t, void *, unsigned supplemental, bool swap=!DFC_BIG_ENDIAN) |
This operator new allows one to place a datagram at a given location. | |
void | operator delete (void *, void *, unsigned, bool) |
Delete operator used to delete a datagram. | |
void | operator delete (void *) |
Delete operator used to delete a datagram. | |
unsigned char * | string (bool swap=!DFC_BIG_ENDIAN) |
Return a pointer to a LATdatagram as a uchar buffer. | |
Static Public Member Functions | |
LATdatagram * | create (unsigned char *buffer, unsigned size, bool swap=!DFC_BIG_ENDIAN) |
Create a LATdatagram from a uchar buffer. |
Copyright: Copyright 2004 by The Board of Trustees of the Leland Stanford Junior University. All rights reserved.
|
Constructor setting up identity and length defaults.
|
|
Method for allocating additional space in a datagram. This method is used to include additional space at the end of a LATdatagram as part of that LATdatagram. It assumes that the memory for that space has been properly allocated.
|
|
Create a LATdatagram from a This method primarily exists for the Python interface. The buffer can optionally be byte swapped by longwords in place. By default, if the endianness of the machine this code is running on is not big endian, then the buffer is byte swapped.
|
|
Return a pointer to the datagram's payload cast as an EBFevent. This is an obsolete method (I think) since one can't make the assumption that a particular LATdatagram payload is an EBFevent. |
|
Delete operator used to delete a datagram. This method is used to avoid SIP constructor MemberCode. |
|
Delete operator used to delete a datagram. This method is used to avoid SIP constructor MemberCode. |
|
This operator new allows one to place a datagram at a given location. This method is used to effectively label a piece of memory containing datagram data a LATdatagram. It is similar to casting a pointer to a LAT datagram pointer. In the process or placing the datagram, the raw data occupying the space can optionally be byte swapped. By default, if the endianness of the machine this code is running on is not big endian, then the buffer is byte swapped.
|
|
Copy a LATdatagram to a new one. This method is used to avoid SIP constructor MemberCode.
|
|
Allocate a LATdatagram with space for a payload off the memory heap. This method is used to avoid SIP constructor MemberCode.
|
|
Allocate a default LATdatagram off the memory heap. This method is used to avoid SIP constructor MemberCode.
|
|
Return a pointer to the start of the datagram's payload. The payload is the data portion of the datagram and does not include its mangement members identity and length. |
|
Return the size of the datagram's payload in units of bytes. The payload is the data portion of the datagram and does not include its mangement members identity and length. |
|
Return a pointer to a LATdatagram as a This method primarily exists for the Python interface.
The buffer can optionally be byte swapped by longwords in place. By default, if the endianness of the machine this code is running on is not big endian, then the buffer is byte swapped. Be sure to supply
|