34 #define DAS_FILL_VALUE -1e31
37 #define DAS_INT64_FILL -0x7FFFFFFFFFFFFFFFL
38 #define DAS_INT32_FILL -0x7FFFFFFF
123 #define D2OP_PLUS 100
int(* das_valcmp_func)(const void *, const void *)
Comparison functions look like this.
Definition: value.h:116
Indicates array values are unsigned 8-bit unsigned integers (bytes)
Definition: value.h:61
Indicates array values are signed 64-bit integers (longs)
Definition: value.h:69
das_val_type das_vt_merge(das_val_type right, int op, das_val_type left)
What would be the resulting type given an operation on the given value type.
das_val_type
Enumeration of types stored in Das Array (DasAry) objects Not that any kind of value may be stored in...
Definition: value.h:51
bool das_str2bool(const char *str, bool *pRes)
Convert a string value to a boolean value.
double * das_csv2doubles(const char *s, int *nitems)
Parse a comma separated list of ASCII values into a double array.
Indicates array values are das_time_t structures.
Definition: value.h:75
Indicates datum values are size_t plus const byte* pairs, no more is known about the bytes...
Definition: value.h:98
bool das_str2double(const char *str, double *pRes)
Convert a string value to a 8-byte float, similar to strtod(3).
Indicates array values are signed 16-bit integers (shorts)
Definition: value.h:65
For generic storage, designates elements as unknown, you have to cast the array return values yoursel...
Definition: value.h:54
bool das_str2baseint(const char *str, int base, int *pRes)
Convert a string to an integer with explicit base and overflow checking.
const char * das_vt_toStr(das_val_type vt)
Get a text string representation of an element type.
Indicates array values are 64-bit floating point values (doubles)
Definition: value.h:73
Indicates datum values are const char* pointers to null terminated UTF-8 strings. ...
Definition: value.h:94
const void * das_vt_fill(das_val_type vt)
Get the default fill value for a given element type.
das_valcmp_func das_vt_getcmp(das_val_type vt)
Get the comparison function for two values of this type.
size_t das_vt_size(das_val_type vt)
Get the size in bytes for a given element type.
Indicates array values are signed 32-bit integers (ints)
Definition: value.h:67
bool das_strn2baseint(const char *str, int nLen, int base, int *pRes)
Convert an explicit length string to an integer with explicit base with over/underflow checks...
Indicates array values are unsigned 16-bit integers (shorts)
Definition: value.h:63
Indicates array values are 32-bit floating point values (floats)
Definition: value.h:71
char * das_doubles2csv(char *buf, const double *value, int nitems)
Print an array of doubles into a string buffer.
bool das_str2int(const char *str, int *pRes)
Convert the initial portion of a string to an integer with explicit over/underflow checks...