Struct dynasmrt::components::MemoryManager [−][src]
pub struct MemoryManager { /* fields omitted */ }
Expand description
This struct implements a protection-swapping assembling buffer
Implementations
Create a new memory manager, with initial_mmap_size
data allocated
Returns the current start address of the managed executable memory
Commits the data from new
into the managed memory, calling f
when the buffer is moved to fix anything
that relies on the address of the buffer
Borrow the internal memory buffer mutably
finalizes the currently committed part of the buffer.
Create an atomically refcounted reference to the internal executable buffer