llarp::RouterID
Inherits from llarp::AlignedBuffer< 32 >
Public Types
| Name | |
|---|---|
| using std::array< byte_t, SIZE > | Data |
Public Functions
| Name | |
|---|---|
| RouterID() =default | |
| RouterID(const byte_t * buf) | |
| RouterID(const Data & data) | |
| std::string | ToString() const |
| std::string | ShortString() const |
| bool | FromString(std::string_view str) |
| RouterID & | operator=(const byte_t * ptr) |
Public Attributes
| Name | |
|---|---|
| constexpr size_t | SIZE |
Additional inherited members
Public Functions inherited from llarp::AlignedBuffer< 32 >
| Name | |
|---|---|
| virtual | ~AlignedBuffer() =default |
| AlignedBuffer() | |
| AlignedBuffer(const byte_t * data) | |
| AlignedBuffer(const Data & buf) | |
| AlignedBuffer< sz > | operator~() const bitwise NOT |
| bool | operator==(const AlignedBuffer & other) const |
| bool | operator!=(const AlignedBuffer & other) const |
| bool | operator<(const AlignedBuffer & other) const |
| bool | operator>(const AlignedBuffer & other) const |
| bool | operator<=(const AlignedBuffer & other) const |
| bool | operator>=(const AlignedBuffer & other) const |
| AlignedBuffer | operator^(const AlignedBuffer & other) const |
| AlignedBuffer & | operator^=(const AlignedBuffer & other) |
| byte_t & | operator[](size_t idx) |
| const byte_t & | operator[](size_t idx) const |
| void | Fill(byte_t f) |
| Data & | as_array() |
| const Data & | as_array() const |
| byte_t * | data() |
| const byte_t * | data() const |
| bool | IsZero() const |
| void | Zero() |
| virtual void | Randomize() |
| Data::iterator | begin() |
| Data::iterator | end() |
| Data::const_iterator | begin() const |
| Data::const_iterator | end() const |
| bool | FromBytestring(llarp_buffer_t * buf) |
| bool | BEncode(llarp_buffer_t * buf) const |
| bool | BDecode(llarp_buffer_t * buf) |
| std::string_view | ToView() const |
| std::string | ToHex() const |
| std::string | ShortHex() const |
| bool | FromHex(std::string_view str) |
| constexpr size_t | size() |
Public Types Documentation
using Data
using llarp::RouterID::Data = std::array<byte_t, SIZE>;
Public Functions Documentation
function RouterID
RouterID() =default
function RouterID
inline RouterID(
const byte_t * buf
)
function RouterID
inline RouterID(
const Data & data
)
function ToString
std::string ToString() const
function ShortString
std::string ShortString() const
function FromString
bool FromString(
std::string_view str
)
function operator=
inline RouterID & operator=(
const byte_t * ptr
)
Public Attributes Documentation
variable SIZE
static constexpr size_t SIZE = 32;
Updated on 2026-01-10 at 22:49:45 +0000