The encoding consists of the elements of the fixed array encoded in order. The encoding of the element at index i
is either prefix_encodings[i]
if set, or encoding
.
More...
#include <runtime_plan.h>
Public Attributes | |
const std::uint64_t | size |
The array length. | |
const SinglePlan | encoding |
Element encoding. | |
const MultiplePlans | prefix_encodings |
Positional encodings. | |
The encoding consists of the elements of the fixed array encoded in order. The encoding of the element at index i
is either prefix_encodings[i]
if set, or encoding
.
Option | Type | Description |
---|---|---|
size | uint | The array length |
prefixEncodings | encoding[] | Positional encodings |
encoding | encoding | Element encoding |
Condition | Description |
---|---|
len(prefixEncodings) <= size | The number of prefix encodings must be less than or equal to the size |
len(value) == size | The input array must have the declared size |
Given the array [ 1, 2, true ]
where the prefixEncodings
corresponds to BOUNDED_MULTIPLE_8BITS_ENUM_FIXED (minimum 0, maximum 10, multiplier 1) and BOUNDED_MULTIPLE_8BITS_ENUM_FIXED (minimum 0, maximum 10, multiplier 1) and encoding
corresponds to BYTE_CHOICE_INDEX with choices [ false, true ]
, the encoding results in: