sgns::storage::trie::KeyNibbles¶
#include <supergenius_node.hpp>
Inherits from sgns::base::Buffer, boost::equality_comparable< Buffer >
Public Functions¶
| Name | |
|---|---|
| KeyNibbles() =default | |
| KeyNibbles(base::Buffer b) | |
| KeyNibbles(std::initializer_list< uint8_t > b) | |
| KeyNibbles & | operator=(base::Buffer b) |
| KeyNibbles | subspan(size_t offset =0, size_t length =-1) const |
Additional inherited members¶
Public Types inherited from sgns::base::Buffer
| Name | |
|---|---|
| using std::vector< uint8_t >::iterator | iterator |
| using std::vector< uint8_t >::reverse_iterator | reverse_iterator |
| using std::vector< uint8_t >::const_reverse_iterator | const_reverse_iterator |
| using std::vector< uint8_t >::const_iterator | const_iterator |
| using uint8_t | value_type |
| using typename std::vector< uint8_t >::pointer | pointer |
| using typename std::vector< uint8_t >::const_pointer | const_pointer |
Public Functions inherited from sgns::base::Buffer
| Name | |
|---|---|
| Buffer(size_t size, uint8_t byte) Allocates a buffer of the given size, filled with a byte value. |
|
| ~Buffer() =default | |
| Buffer(std::vector< uint8_t > v) lvalue construct buffer from a byte vector |
|
| Buffer(gsl::span< const uint8_t > s) | |
| Buffer(const uint8_t * begin, const uint8_t * end) | |
| Buffer() =default | |
| Buffer(const Buffer & b) =default | |
| Buffer(Buffer && b) =default | |
| Buffer(std::initializer_list< uint8_t > b) | |
| Buffer & | reserve(size_t size) |
| Buffer & | resize(size_t size) |
| Buffer & | operator+=(const Buffer & other) |
| uint8_t | operator[](size_t index) const Accessor of byte elements given an index in the byte array. |
| uint8_t & | operator[](size_t index) Accessor of byte elements given an index in the byte array. |
| bool | operator==(const Buffer & b) const Lexicographical comparison of two buffers. |
| bool | operator==(const std::vector< uint8_t > & b) const Lexicographical comparison of buffer and vector of bytes. |
| bool | operator==(gsl::span< const uint8_t > s) const Lexicographical comparison of buffer and vector of bytes. |
| bool | operator<(const Buffer & b) const Lexicographical comparison of two buffers. |
| iterator | begin() Iterator, which points to begin of this buffer. |
| iterator | end() Iterator, which points to the element next to the last in this buffer. |
| reverse_iterator | rbegin() Iterator, which points to last of this buffer. |
| reverse_iterator | rend() Iterator, which points to the element previous to first in this buffer. |
| const_reverse_iterator | rbegin() const Iterator, which points to last of this buffer. |
| const_reverse_iterator | rend() const Iterator, which points to the element previous to first in this buffer. |
| const_iterator | begin() const Iterator, which points to begin of this buffer. |
| const_iterator | end() const Iterator, which points to the element next to the last in this buffer. |
| size_t | size() const Getter for size of this buffer. |
| Buffer & | putUint8(uint8_t n) Put an 8-bit value into this buffer. |
| Buffer & | putUint32(uint32_t n) Put a 32-bit value into this buffer. |
| Buffer & | putUint64(uint64_t n) Put a 64-bit value into this buffer. |
| Buffer & | put(std::string_view str) Put a string into the byte buffer. |
| Buffer & | put(const std::vector< uint8_t > & v) Put a vector of bytes into the byte buffer. |
| Buffer & | put(gsl::span< const uint8_t > s) Put a sequence of bytes into the byte buffer. |
| Buffer & | putBytes(const uint8_t * begin, const uint8_t * end) Put an array of bytes bounded by pointers into the byte buffer. |
| Buffer & | putBuffer(const Buffer & buf) Put another buffer content at the end of current one. |
| void | clear() |
| const uint8_t * | data() const getter for raw array of bytes |
| uint8_t * | data() |
| const std::vector< uint8_t > & | toVector() const getter for vector of bytes |
| std::vector< uint8_t > & | toVector() |
| Buffer | subbuffer(size_t offset =0, size_t length =-1) const |
| std::string | toHex() const encode bytearray as hex |
| bool | empty() const |
| std::string_view | toString() const return content of bytearray as string |
| outcome::result< Buffer > | fromHex(std::string_view hex) Construct Buffer from hex string. |
Public Functions Documentation¶
function KeyNibbles¶
function KeyNibbles¶
function KeyNibbles¶
function operator=¶
function subspan¶
Updated on 2026-03-04 at 13:10:44 -0800