The encoding consists of the byte-length of the string minus minimum
plus 1 as a Base-128 64-bit Little Endian variable-length unsigned integer followed by the UTF-8 encoding of the input value.
More...
#include <runtime_plan.h>
Public Attributes | |
const std::uint64_t | minimum |
The inclusive minimum string UTF-8 byte-length. | |
The encoding consists of the byte-length of the string minus minimum
plus 1 as a Base-128 64-bit Little Endian variable-length unsigned integer followed by the UTF-8 encoding of the input value.
Optionally, if the input string has already been encoded to the buffer using UTF-8, the encoding may consist of the byte constant 0x00
followed by the byte-length of the string minus minimum
plus 1 as a Base-128 64-bit Little Endian variable-length unsigned integer, followed by the current offset minus the offset to the start of the UTF-8 string value in the buffer encoded as a Base-128 64-bit Little Endian variable-length unsigned integer.
Option | Type | Description |
---|---|---|
minimum | uint | The inclusive minimum string UTF-8 byte-length |
Condition | Description |
---|---|
len(value) >= minimum | The input string byte-length is equal to or greater than the minimum |
Given the input string foo
with a minimum 3 where the string has not been previously encoded, the encoding results in:
Given the encoding of foo
with a minimum of 0 followed by the encoding of foo
with a minimum of 3, the encoding may result in: