llarp::OwnedBuffer
Public Types
| Name | |
|---|---|
| using std::unique_ptr< byte_t[]> | bufptr_t |
Public Functions
| Name | |
|---|---|
| OwnedBuffer(size_t sz) | |
| OwnedBuffer(const byte_t * ptr, size_t sz) | |
| OwnedBuffer(const OwnedBuffer & ) =delete | |
| OwnedBuffer & | operator=(const OwnedBuffer & ) =delete |
| OwnedBuffer(OwnedBuffer && ) =default | |
| OwnedBuffer & | operator=(OwnedBuffer && ) =delete |
| operator llarp_buffer_t() | |
| std::vector< byte_t > | copy() const copy everything in this owned buffer into a vector |
| OwnedBuffer | copy_from(const llarp_buffer_t & b) |
| OwnedBuffer | copy_used(const llarp_buffer_t & b) |
Public Attributes
| Name | |
|---|---|
| bufptr_t | buf |
| size_t | sz |
Public Types Documentation
using bufptr_t
using llarp::OwnedBuffer::bufptr_t = std::unique_ptr<byte_t[]>;
Public Functions Documentation
function OwnedBuffer
inline explicit OwnedBuffer(
size_t sz
)
function OwnedBuffer
inline explicit OwnedBuffer(
const byte_t * ptr,
size_t sz
)
function OwnedBuffer
OwnedBuffer(
const OwnedBuffer &
) =delete
function operator=
OwnedBuffer & operator=(
const OwnedBuffer &
) =delete
function OwnedBuffer
OwnedBuffer(
OwnedBuffer &&
) =default
function operator=
OwnedBuffer & operator=(
OwnedBuffer &&
) =delete
function operator llarp_buffer_t
inline operator llarp_buffer_t()
function copy
std::vector< byte_t > copy() const
copy everything in this owned buffer into a vector
function copy_from
static OwnedBuffer copy_from(
const llarp_buffer_t & b
)
function copy_used
static OwnedBuffer copy_used(
const llarp_buffer_t & b
)
Public Attributes Documentation
variable buf
bufptr_t buf;
variable sz
size_t sz;
Updated on 2026-04-01 at 23:35:39 +0000