IndexCoreasmjit::CodeBuffer

asmjit::CodeBuffer Struct Reference [¶]

Code or data buffer.

Public Members

Members

Member Functions

Overloaded Operators

Accessors

Iterators

uint8_t& CodeBuffer::operator[](
size_t index
)nodiscardnoexcept[1/2][¶]

Returns a reference to the byte at the given index.

const uint8_t& CodeBuffer::operator[](
size_t index
) constnodiscardnoexcept[2/2][¶]

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

CodeBufferFlags CodeBuffer::flags() constnodiscardnoexcept[¶]

Returns code buffer flags.

bool CodeBuffer::has_flag() constnodiscardnoexcept[¶]

Tests whether the code buffer has the given flag set.

bool CodeBuffer::is_fixed() constnodiscardnoexcept[¶]

Tests whether this code buffer has a fixed size.

Fixed size means that the code buffer is fixed and cannot grow.

bool CodeBuffer::is_external() constnodiscardnoexcept[¶]

Tests whether the data in this code buffer is external.

External data can only be provided by users, it's never used by AsmJit.

bool CodeBuffer::is_allocated() constnodiscardnoexcept[¶]

Tests whether the data in this code buffer is allocated (non-null).

bool CodeBuffer::is_empty() constnodiscardnoexcept[¶]

Tests whether the code buffer is empty.

size_t CodeBuffer::size() constnodiscardnoexcept[¶]

Returns the size of the data.

size_t CodeBuffer::capacity() constnodiscardnoexcept[¶]

Returns the capacity of the data.

uint8_t* CodeBuffer::data()nodiscardnoexcept[1/2][¶]

Returns the pointer to the data the buffer references.

const uint8_t* CodeBuffer::data() constnodiscardnoexcept[2/2][¶]

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

uint8_t* CodeBuffer::_data[¶]

The content of the buffer (data).

size_t CodeBuffer::_size[¶]

Number of bytes of data used.

size_t CodeBuffer::_capacity[¶]

Buffer capacity (in bytes).

CodeBufferFlags CodeBuffer::_flags[¶]

Buffer flags.