llarp::Encrypted

encrypted buffer base type More...

#include <encrypted.hpp>

Public Functions

Name
Encrypted(Encrypted && other)
Encrypted(const Encrypted & other)
Encrypted()
void Clear()
Encrypted(const byte_t * buf, size_t sz)
Encrypted(size_t sz)
bool BEncode(llarp_buffer_t * buf) const
bool operator==(const Encrypted & other) const
bool operator!=(const Encrypted & other) const
Encrypted & operator=(const Encrypted & other)
Encrypted & operator=(const llarp_buffer_t & buf)
void Fill(byte_t fill)
void Randomize()
bool BDecode(llarp_buffer_t * buf)
llarp_buffer_t * Buffer()
size_t size()
size_t size() const
byte_t * data()
const byte_t * data() const

Protected Functions

Name
void UpdateBuffer()

Protected Attributes

Name
AlignedBuffer< bufsz > _buf
size_t _sz
llarp_buffer_t m_Buffer

Detailed Description

template <size_t bufsz =MAX_LINK_MSG_SIZE>
struct llarp::Encrypted;

encrypted buffer base type

Public Functions Documentation

function Encrypted

inline Encrypted(
    Encrypted && other
)

function Encrypted

inline Encrypted(
    const Encrypted & other
)

function Encrypted

inline Encrypted()

function Clear

inline void Clear()

function Encrypted

inline Encrypted(
    const byte_t * buf,
    size_t sz
)

function Encrypted

inline Encrypted(
    size_t sz
)

function BEncode

inline bool BEncode(
    llarp_buffer_t * buf
) const

function operator==

inline bool operator==(
    const Encrypted & other
) const

function operator!=

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

function operator=

inline Encrypted & operator=(
    const Encrypted & other
)

function operator=

inline Encrypted & operator=(
    const llarp_buffer_t & buf
)

function Fill

inline void Fill(
    byte_t fill
)

function Randomize

inline void Randomize()

function BDecode

inline bool BDecode(
    llarp_buffer_t * buf
)

function Buffer

inline llarp_buffer_t * Buffer()

function size

inline size_t size()

function size

inline size_t size() const

function data

inline byte_t * data()

function data

inline const byte_t * data() const

Protected Functions Documentation

function UpdateBuffer

inline void UpdateBuffer()

Protected Attributes Documentation

variable _buf

AlignedBuffer< bufsz > _buf;

variable _sz

size_t _sz;

variable m_Buffer

llarp_buffer_t m_Buffer;

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