![]() |
das2C
das core C utilities (v3)
|
Objects representing a single das stream. More...
Go to the source code of this file.
Data Structures | |
struct | DasStream |
Describes the stream itself, in particular the compression used, current packetDescriptors, etc. More... | |
Macros | |
#define | StreamDesc DasStream |
Compatability macro For backwards compatability, all functions with the name pattern DasStream are also have a macro alias to StreamDesc. | |
Functions | |
DAS_API int | DasStream_nextFrameId (const DasStream *pThis) |
Get the next open frame ID. More... | |
DAS_API bool | DasStream_isValidId (const DasStream *pThis, int nPktId) |
Check to see if an packet ID has been defined for the stream. More... | |
DAS_API int8_t | DasStream_getNumFrames (const DasStream *pThis) |
Return the number of frames defined in the stream. | |
DAS_API int8_t | DasStream_getFrameId (const DasStream *pThis, const char *sFrame) |
Get a frame index given it's name. More... | |
DAS_API DasDesc * | DasDesc_decode (DasBuf *pBuf, DasStream *pSd, int nPktId, int nModel) |
Packtized Stream Descriptor Factory Function. More... | |
Objects representing a single das stream.
DAS_API int DasStream_nextFrameId | ( | const DasStream * | pThis | ) |
Get the next open frame ID.
DAS_API bool DasStream_isValidId | ( | const DasStream * | pThis, |
int | nPktId | ||
) |
Check to see if an packet ID has been defined for the stream.
pThis | The stream to check |
nPktId | The ID in question |
DAS_API int8_t DasStream_getFrameId | ( | const DasStream * | pThis, |
const char * | sFrame | ||
) |
Get a frame index given it's name.
Packtized Stream Descriptor Factory Function.
pBuf | A buffer containing string data to decode. |
pSd | - The Stream descriptor, if it exists. May be NULL. |
nPktId | - The packet tag ID number corresponding to this top-level descriptor |
nModel | - The expected data model to parse into, one of STREAM_MODEL_MIXED, STREAM_MODEL_V2, or STREAM_MODEL_V3 |