33 #define DASENC_VALID 0x0001
40 typedef struct das_codec {
71 #define DasCodec_isValid(pCd) (((pCd)->uProc & DASENC_VALID)==(DASENC_VALID))
121 DasCodec* pThis,
DasAry* pAry,
const char* sSemantic,
const char* sEncType,
122 int16_t uSzEach, ubyte cSep,
das_units epoch
159 DasCodec* pThis,
const ubyte* pBuf,
int nBufLen,
int nExpect,
int* pValsRead
A dynamic buffer with multi-dimensional array style access.
DAS_API int DasCodec_decode(DasCodec *pThis, const ubyte *pBuf, int nBufLen, int nExpect, int *pValsRead)
Read values from a simple buffer into an array.
DAS_API void DasCodec_deInit(DasCodec *pThis)
Release the reference count on the array given to this encoder/decoder.
DAS_API DasErrCode DasCodec_init(DasCodec *pThis, DasAry *pAry, const char *sSemantic, const char *sEncType, int16_t uSzEach, ubyte cSep, das_units epoch)
Initialize a serial buffer decoder/encoder.
int DasErrCode
return code type 0 indicates success, negative integer indicates failure
Definition: defs.h:164
const char * das_units
Handle SI and other units, with accommodations for Epoch systems, from units.h.
Definition: units.h:139
das_val_type
Enumeration of types stored in Das Array (DasAry) objects from value.h.
Definition: value.h:64
Dynamic recursive ragged arrays.
Definition: array.h:270
Reading and writing array data to buffers.
Definition: codec.h:40
A generic value type for use in arrays, datums and variables.