|
Anjay Lite
|
#include <defs.h>
Data Fields | |
| const void * | data |
| size_t | offset |
| size_t | chunk_length |
| size_t | full_length_hint |
Representation of a string or opaque value (full or partial).
Used when the resource type is ANJ_DATA_TYPE_BYTES or ANJ_DATA_TYPE_STRING.
| size_t chunk_length |
Length (in bytes) of valid data at data.
chunk_length and full_length_hint are 0 and data is non-NULL, the buffer is assumed to contain a null-terminated string. The length will then be determined using strlen(). | const void* data |
Pointer to the data buffer.
| size_t full_length_hint |
Full size (in bytes) of the complete resource value, if known.
offset, chunk_length and full_length_hint are all 0, the resource is treated as empty.chunk_length. Any other value is considered invalid.offset + chunk_length. | size_t offset |
Absolute offset (in bytes) from the beginning of the resource value represented by this chunk.