Buf (C++-API)

This page describes the C++ implementation of Buf

struct a0::Buf : public a0::details::CppWrap<a0_buf_t>

Public Functions

Buf(uint8_t*, size_t)

Construct a buffer wrapping the given memory.

const uint8_t *data() const

Constant reference to the underlying memory.

uint8_t *data()

Mutable reference to the underlying memory.

size_t size() const

Size of the underlying memory.