Struct dynasmrt::mmap::MutableBuffer[][src]

pub struct MutableBuffer { /* fields omitted */ }
Expand description

ExecutableBuffer equivalent that holds a buffer of mutable memory instead of executable memory. It also derefs to a &mut [u8]. This structure does not allocate when its size is 0.

Implementations

Create a new mutable buffer, backed by a buffer of size size. It will start with an initialized length of 0.

Query the backing size of this mutable buffer

Set the length of the usable part of this mutable buffer. The length should not be set larger than the allocated size, otherwise methods can panic.

Change this mutable buffer into an executable buffer.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.