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.
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.