llarp::NetID

NetID.

#include <router_contact.hpp>

Inherits from llarp::AlignedBuffer< 8 >

Public Functions

Name
NetID & DefaultValue()
NetID()
NetID(const byte_t * val)
NetID(const NetID & other) =default
NetID & operator=(const NetID & other) =default
bool operator==(const NetID & other) const
bool operator!=(const NetID & other) const
std::string ToString() const
bool BDecode(llarp_buffer_t * buf)
bool BEncode(llarp_buffer_t * buf) const

Additional inherited members

Public Types inherited from llarp::AlignedBuffer< 8 >

Name
using std::array< byte_t, SIZE > Data

Public Functions inherited from llarp::AlignedBuffer< 8 >

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
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)
std::string_view ToView() const
std::string ToHex() const
std::string ShortHex() const
bool FromHex(std::string_view str)
constexpr size_t size()

Public Attributes inherited from llarp::AlignedBuffer< 8 >

Name
constexpr size_t SIZE

Public Functions Documentation

function DefaultValue

static NetID & DefaultValue()

function NetID

NetID()

function NetID

explicit NetID(
    const byte_t * val
)

function NetID

NetID(
    const NetID & other
) =default

function operator=

NetID & operator=(
    const NetID & other
) =default

function operator==

bool operator==(
    const NetID & other
) const

function operator!=

inline bool operator!=(
    const NetID & other
) const

function ToString

std::string ToString() const

function BDecode

bool BDecode(
    llarp_buffer_t * buf
)

function BEncode

bool BEncode(
    llarp_buffer_t * buf
) const

Updated on 2026-01-10 at 22:49:45 +0000