Nibble-based view on a bytesConstRef.
More...
#include <TrieCommon.h>
Nibble-based view on a bytesConstRef.
Definition at line 52 of file TrieCommon.h.
void dev::NibbleSlice::clear |
( |
| ) |
|
|
inline |
bool dev::NibbleSlice::contains |
( |
NibbleSlice |
_k | ) |
const |
|
inline |
- Returns
- true iff _k is a prefix of this.
Definition at line 65 of file TrieCommon.h.
bool dev::NibbleSlice::empty |
( |
| ) |
const |
|
inline |
bool dev::NibbleSlice::isEarlierThan |
( |
NibbleSlice |
_k | ) |
const |
|
inline |
Determine if we, a full key, are situated prior to a particular key-prefix.
- Parameters
-
- Returns
- true if we are strictly prior to the prefix.
Definition at line 73 of file TrieCommon.h.
NibbleSlice dev::NibbleSlice::mid |
( |
unsigned |
_index | ) |
const |
|
inline |
bool dev::NibbleSlice::operator!= |
( |
NibbleSlice |
_s | ) |
const |
|
inline |
bool dev::NibbleSlice::operator== |
( |
NibbleSlice |
_k | ) |
const |
|
inline |
byte dev::NibbleSlice::operator[] |
( |
unsigned |
_index | ) |
const |
|
inline |
unsigned dev::NibbleSlice::shared |
( |
NibbleSlice |
_k | ) |
const |
|
inline |
- Returns
- the number of shared nibbles at the beginning of this and _k.
Definition at line 67 of file TrieCommon.h.
unsigned dev::NibbleSlice::size |
( |
| ) |
const |
|
inline |
unsigned dev::NibbleSlice::offset |
The documentation for this struct was generated from the following file: