Anjay Lite
|
#include <defs.h>
Data Fields | |
const void * | data |
size_t | offset |
size_t | chunk_length |
size_t | full_length_hint |
Represents a (possibly partial) string or opaque value.
size_t chunk_length |
Length (in bytes) of valid data available at data
.
chunk_length
and full_length_hint
are set to 0 and data
is non-NULL, then the buffer is assumed to contain a null-terminated string, and its length will be determined using strlen()
. const void* data |
Pointer to the data buffer.
In output contexts (e.g., responding to a Read), this points to the data that will be sent to the LwM2M server. In input contexts (e.g., handling a Write), this points to the data received from the server.
size_t full_length_hint |
Full size (in bytes) of the entire resource, if known.
offset
, chunk_length
and full_length_hint
are 0, this is treated as a zero-length resource.chunk_length
. Any other value will be considered an error.offset
+ chunk_length
to indicate completion. size_t offset |
Offset (in bytes) from the beginning of the full resource value that the current data
chunk represents.