Trait memlib::MemoryAllocate
source · [−]pub trait MemoryAllocate {
fn allocate(
&self,
size: u64,
protection: MemoryProtection
) -> Result<u64, MemoryAllocateError>;
fn free(&self, base: u64, size: u64) -> Result<(), MemoryAllocateError>;
}Required Methods
sourcefn allocate(
&self,
size: u64,
protection: MemoryProtection
) -> Result<u64, MemoryAllocateError>
fn allocate(
&self,
size: u64,
protection: MemoryProtection
) -> Result<u64, MemoryAllocateError>
Allocates size bytes of memory in the process with the specified protection. Returns the allocated memory or an error.