spdk_json_val Struct Reference

Data Fields

void * start
 Pointer to the location of the value within the parsed JSON input. More...
 
uint32_t len
 Length of value. More...
 
enum spdk_json_val_type type
 Type of value.
 

Field Documentation

◆ len

uint32_t spdk_json_val::len

Length of value.

For SPDK_JSON_VAL_STRING, SPDK_JSON_VAL_NUMBER, and SPDK_JSON_VAL_NAME, this is the length in bytes of the value starting at start.

For SPDK_JSON_VAL_ARRAY_BEGIN and SPDK_JSON_VAL_OBJECT_BEGIN, this is the number of values contained within the array or object (including nested objects and arrays, but not including the _END value). The array or object _END value can be found by advancing len values from the _BEGIN value.

◆ start

void* spdk_json_val::start

Pointer to the location of the value within the parsed JSON input.

For SPDK_JSON_VAL_STRING and SPDK_JSON_VAL_NAME, this points to the beginning of the decoded UTF-8 string without quotes.

For SPDK_JSON_VAL_NUMBER, this points to the beginning of the number as represented in the original JSON (text representation, not converted to a numeric value).

For JSON objects and arrays, this points to their beginning and has a type set to SPDK_JSON_VAL_OBJECT_BEGIN or SPDK_JSON_VAL_ARRAY_BEGIN respectively.


The documentation for this struct was generated from the following file: