29#ifndef LIBASTERIX_FSPEC_H
30#define LIBASTERIX_FSPEC_H
55typedef struct _ast_fspec_t
120AST_API bool ast_fspec_set(
unsigned char*
const buffer,
const size_t bufsize,
const unsigned int frn,
const bool set);
ast_fspec_t ast_fspec_decode(const unsigned char *const buffer, const size_t bufsize)
FSPEC decode function.
bool ast_fspec_is_set(const ast_fspec_t *fspec, const unsigned int frn)
Test whether a data item is present.
bool ast_fspec_set(unsigned char *const buffer, const size_t bufsize, const unsigned int frn, const bool set)
Set or clear the presence bit of a data item.
ast_fspec_t ast_fspec_copy(unsigned char *const buffer, const size_t bufsize, const ast_fspec_t src)
FSPEC copy function.
Field Specification (FSPEC).
Definition fspec.h:56
bool valid
True, if FSPEC is correctly decoded.
Definition fspec.h:61
const unsigned char * data
Address of FSPEC field.
Definition fspec.h:57
size_t count
Number of data items in total.
Definition fspec.h:59
size_t count_set
Number of data items set existence.
Definition fspec.h:60
size_t size
Size of FSPEC field, number of bytes.
Definition fspec.h:58