Struct dynasmrt::mmap::ExecutableBuffer [−][src]
pub struct ExecutableBuffer { /* fields omitted */ }
Expand description
A structure holding a buffer of executable memory. It also derefs to a &[u8]
.
This structure does not allocate when its size is 0.
Implementations
Obtain a pointer into the executable memory from an offset into it.
When an offset returned from DynasmLabelApi::offset
is used, the resulting pointer
will point to the start of the first instruction after the offset call,
which can then be jumped or called to divert control flow into the executable
buffer. Note that if this buffer is accessed through an Executor, these pointers
will only be valid as long as its lock is held. When no locks are held,
The assembler is free to relocate the executable buffer when it requires
more memory than available.
Create a new executable buffer, backed by a buffer of size size
.
It will start with an initialized length of 0.
Change this executable buffer into a mutable buffer.
Trait Implementations
Returns the “default value” for a type. Read more