![]() |
das2C
das core C utilities (v3)
|


Go to the source code of this file.
Functions | |
| DAS_API void | das_datum_init (das_datum *pThis, const ubyte *pSrc, das_val_type vt, uint32_t vsize, das_units units) |
| General datum initialization. | |
| char * | das_datum_toStrValOnlySep (const das_datum *pThis, char *sStr, size_t uLen, int nFracDigits, const char *sSep) |
| Similar to das_datum_toStr, but can specify a separator for vectors. | |
| DAS_API void das_datum_init | ( | das_datum * | pThis, |
| const ubyte * | pSrc, | ||
| das_val_type | vt, | ||
| uint32_t | vsize, | ||
| das_units | units | ||
| ) |
General datum initialization.
| pSrc | A pointer to the source location. If the source bytes are less then DATUM_BUF_SZ they are copied internally, otherwise the pointer itself is stored in the first member of the struct. |
| vt | The value type, one of the 15 types listed in the das_val_type enum. |
| vsize | The value size, for anything other then vtUnknown, vtByteSeq and vtText this parameter is ignored. |
| units | The units associated with the value. |
@member of das_datum
| char * das_datum_toStrValOnlySep | ( | const das_datum * | pThis, |
| char * | sStr, | ||
| size_t | uLen, | ||
| int | nFracDigits, | ||
| const char * | sSep | ||
| ) |
Similar to das_datum_toStr, but can specify a separator for vectors.
The separator is ignored if the element type is not multi-valued