RTI Connext Micro C API Version 4.2.0
|
NETIO_Packet implementation. More...
Data Structures | |
struct | NETIO_Packet |
Implementation of the abstract NETIO_Packet type. More... | |
Typedefs | |
typedef struct NETIO_Packet | NETIO_Packet_T |
A NETIO Packet. | |
Functions | |
void * | NETIO_Packet_get_head (const NETIO_Packet_T *const packet) |
Get a pointer to the current head. | |
RTI_BOOL | NETIO_Packet_set_payload (NETIO_Packet_T *const packet, void *buffer, RTI_INT32 buffer_length) |
Initialize a packet with a payload. | |
RTI_SIZE_T | NETIO_Packet_get_payload_length (const NETIO_Packet_T *const packet) |
Get the length the packet payload. | |
NETIO_Packet implementation.
typedef struct NETIO_Packet NETIO_Packet_T |
A NETIO Packet.
The NETIO layers passed NETIO_Packet structures upstream/downstream.
void * NETIO_Packet_get_head | ( | const NETIO_Packet_T *const | packet | ) |
Get a pointer to the current head.
Get a pointer to the current head. Note that it can be assumed that the payload buffer is contiguous.
[in] | packet | Packet to get the head pointer for |
RTI_BOOL NETIO_Packet_set_payload | ( | NETIO_Packet_T *const | packet, |
void * | buffer, | ||
RTI_INT32 | buffer_length ) |
Initialize a packet with a payload.
[in] | packet | Packet to initialize |
[in] | buffer | Payload to initialize packet with |
[in] | buffer_length | Length of the payload in bytes |
References RTI_INT32.
RTI_SIZE_T NETIO_Packet_get_payload_length | ( | const NETIO_Packet_T *const | packet | ) |
Get the length the packet payload.
[in] | packet | Packet to return the payload length for |
References RTI_UINT32.