![]() |
das2C
das core C utilities (v3)
|
Creating, reading and writing datasets to and from buffers. More...
Go to the source code of this file.
Functions | |
DAS_API DasDs * | dasds_from_xmlheader3 (DasBuf *pBuf, StreamDesc *pParent, int nPktId) |
Define a das dataset and all it's constiutant parts from a das3 XML header. More... | |
DAS_API DasDs * | dasds_from_xmlheader2 (DasBuf *pBuf, StreamDesc *pParent, int nPktId) |
Define a das dataset and all it's constiutant parts from a legacy das2 XML header. More... | |
DAS_API DasErrCode | dasds_decode_data (DasDs *pDs, DasBuf *pBuf) |
Given a das dataset decode it's packets. More... | |
Creating, reading and writing datasets to and from buffers.
DAS_API DasDs* dasds_from_xmlheader3 | ( | DasBuf * | pBuf, |
StreamDesc * | pParent, | ||
int | nPktId | ||
) |
Define a das dataset and all it's constiutant parts from a das3 XML header.
pBuf | The buffer to read. Reading will start with the read point and will run until DasBuf_remaining() is 0 or the end tag is found, which ever comes first. |
pParent | The parent descriptor for this data set. This is assumed to be an object which can hold vector frame definitions. |
nPktId | The packet's ID within it's parent's array. My be 0 if and only if pParent is NULL |
DAS_API DasDs* dasds_from_xmlheader2 | ( | DasBuf * | pBuf, |
StreamDesc * | pParent, | ||
int | nPktId | ||
) |
Define a das dataset and all it's constiutant parts from a legacy das2 XML header.
pBuf | The buffer to read. Reading will start with the read point and will run until DasBuf_remaining() is 0 or the end tag is found, which ever comes first. |
pParent | The parent descriptor for this data set. This is assumed to be an object which can hold vector frame definitions. |
nPktId | The packet's ID within it's parent's array. My be 0 if and only if pParent is NULL |
DAS_API DasErrCode dasds_decode_data | ( | DasDs * | pDs, |
DasBuf * | pBuf | ||
) |
Given a das dataset decode it's packets.
pDs | A pointer to a das dataset object that has defined encoders and arrays. This can be created via dasds_from_xmlheader() |
pBuf | The buffer to read. Reading will start with the read point and will run until the end of the packet. Since reading from the buffer advances the read point, the caller can determine how many bytes were read. |