Function kvdb::end_prefix
source · [−]Expand description
For a given start prefix (inclusive), returns the correct end prefix (non-inclusive).
This assumes the key bytes are ordered in lexicographical order.
Since key length is not limited, for some case we return None
because there is
no bounded limit (every keys in the serie []
, [255]
, [255, 255]
…).