int cdds_getxx(bin, tag, in_buf, out_array, count);
Function HostType out_array Pad
cdds_get byte --
cdds_getcs char null terminated
cdds_getcb char blank
cdds_geti int zero
cdds_gets short zero
cdds_getl long zero
cdds_getu unsigned zero
cdds_getus short unsigned zero
cdds_getul long unsigned zero
cdds_getf float zero
cdds_getff float zero (USP fake float)
cdds_getc complex zero
cdds_getd double zero
C assignment rules are used to convert
float fields to integer and unsigned values.
Character fields are assumed to be padded with blanks.
Trailing pad characters are ignored during get processing;
they effectively shorten input character fields.
cdds_getcs appends a trailing null character to the value.
In this case out_array should be dimensioned
greater than count.
cdds_getcb pads the value with blanks to the full count.
cdds_getff pulls a float value stuffed from consecutive 4-byte.
NOTE: When cdds_getf is given a negative tag, then the absolute value
of the tag is instead passed to cdds_getff. This is
indicative of a request from cdds_member for one of the
Horzxx trace headers.
BIN_TAG bin;
FIELD_TAG tag;
const char *in_buf;
int *out_array;
...
tag = cdds_member(bin,0,"TagName");
...
// Read in a single trace to in_buf
cddx_read(bin, in_buf, 1);
// Store 100 values from "TagName" header into out_array (cast to int if necessary)
cdds_geti(bin, tag, in_buf, out_array, 100);
cdds_put Put one field to a buffer