llarp::NetID

NetID.

#include <router_contact.hpp>

Public Types

Name
using std::array< byte_t, SIZE > Data
using Data::iterator iter_t
using Data::const_iterator c_iter_t

Public Functions

Name
constexpr size_t size() const
constexpr byte_t * data()
constexpr const byte_t * data() const
constexpr const std::array< byte_t, SIZE > & as_array() const
constexpr iter_t begin()
constexpr iter_t end()
constexpr c_iter_t begin() const
constexpr c_iter_t end() const
std::string_view ToView() const
void Fill(byte_t ch)
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 BEncode(llarp_buffer_t * ) const
bool BDecode(llarp_buffer_t * )
constexpr size_t max_size()
NetID & DefaultValue()

Public Attributes

Name
constexpr size_t SIZE

Public Types Documentation

using Data

using llarp::NetID::Data =  std::array<byte_t, SIZE>;

using iter_t

using llarp::NetID::iter_t =  Data::iterator;

using c_iter_t

using llarp::NetID::c_iter_t =  Data::const_iterator;

Public Functions Documentation

function size

inline constexpr size_t size() const

function data

inline constexpr byte_t * data()

function data

inline constexpr const byte_t * data() const

function as_array

inline constexpr const std::array< byte_t, SIZE > & as_array() const

function begin

inline constexpr iter_t begin()

function end

inline constexpr iter_t end()

function begin

inline constexpr c_iter_t begin() const

function end

inline constexpr c_iter_t end() const

function ToView

inline std::string_view ToView() const

function Fill

inline void Fill(
    byte_t ch
)

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 BEncode

bool BEncode(
    llarp_buffer_t * 
) const

function BDecode

bool BDecode(
    llarp_buffer_t * 
)

function max_size

static inline constexpr size_t max_size()

function DefaultValue

static NetID & DefaultValue()

Public Attributes Documentation

variable SIZE

static constexpr size_t SIZE =  8;

Updated on 2026-04-01 at 23:35:39 +0000