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 amount of bytes already committed to the manager

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

Trait Implementations

Formats the value using the given formatter. Read more

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.