OpenFlow Data Plane Abstraction (OF-DPA) API Guide and Reference Manual
|
Intrinsic buffer descriptor. More...
#include <ofdpa_datatypes.h>
Data Fields | |
char * | pstart |
ptr to buffer starting location | |
uint32_t | size |
total buffer size (IN) / content length (OUT) | |
Intrinsic buffer descriptor.
NOTE: This is intended to be used as a basic data type that can be passed directly between functions – keep it small and simple. To use this as an IN/OUT or OUT value, pass a pointer to the element so that the called routine can update the 'size' field with the actual content length being output.
NOTE: When setting the 'size' field to indicate the amount of data contained in the buffer, the conventional usage is to account for all bytes including any string termination characters (e.g. strlen()+1).
Definition at line 268 of file ofdpa_datatypes.h.