41 ACTF_FLD_TYPE_BIT_MAP,
size_t actf_fld_arr_len(const actf_fld *fld)
Get the number of elements in an array field.
const char * actf_fld_type_name(enum actf_fld_type type)
Get the name of a type.
int64_t actf_fld_int64(const actf_fld *fld)
Get an int64 representation of the field.
const actf_fld * actf_fld_struct_fld_idx(const actf_fld *fld, size_t i)
Get the i:th member of a struct field.
bool actf_fld_bool(const actf_fld *fld)
Get a bool representation of a field.
const actf_fld_cls * actf_fld_fld_cls(const actf_fld *fld)
Get the class of a field.
actf_fld_type
Field types.
Definition fld.h:36
size_t actf_fld_blob_sz(const actf_fld *fld)
Get the number of bytes a blob field occupies.
size_t actf_fld_str_sz(const actf_fld *fld)
Get the number of bytes the string data of a field occupies, including the null-terminator if it exis...
const actf_fld * actf_fld_struct_fldn(const actf_fld *fld, const char *key, size_t len)
Same as actf_fld_struct_fld() but with an explicit key length.
const actf_fld * actf_fld_arr_idx(const actf_fld *fld, size_t i)
Get the element of a specific index in an array field.
double actf_fld_double(const actf_fld *fld)
Get a double representation of the field.
uint64_t actf_fld_uint64(const actf_fld *fld)
Get a uint64 representation of the field.
float actf_fld_float(const actf_fld *fld)
Get a float representation of the field.
const char * actf_fld_struct_fld_name_idx(const actf_fld *fld, size_t i)
Get the name of the ith member in a struct field.
const void * actf_fld_blob(const actf_fld *fld)
Get data of a blob field.
const actf_fld * actf_fld_struct_fld(const actf_fld *fld, const char *key)
Get the member with a name matching key in a struct field.
size_t actf_fld_struct_len(const actf_fld *fld)
Get the number of members in a struct field.
const char * actf_fld_str_raw(const actf_fld *fld)
Get the raw string data representation of a field.
Field class related methods.
Basic types used by ACTF.
struct actf_fld actf_fld
A field.
Definition types.h:91
struct actf_fld_cls actf_fld_cls
A field class.
Definition types.h:93