Struct chunky::HeapHandler [−][src]
pub struct HeapHandler;
A Handler
that allocates chunks on the heap
Trait Implementations
impl Handler for HeapHandler
[src]
impl Handler for HeapHandler
fn create_chunk(_ident: Ident, size: usize) -> *mut u8
[src]
fn create_chunk(_ident: Ident, size: usize) -> *mut u8
Create a new chunk with a given identifier, assumes it doesn't exist
fn load_or_create_chunk(ident: Ident, size: usize) -> (*mut u8, bool)
[src]
fn load_or_create_chunk(ident: Ident, size: usize) -> (*mut u8, bool)
Load a chunk with a given identifier, or create it if it doesn't exist
fn load_chunk(_ident: Ident) -> (*mut u8, usize)
[src]
fn load_chunk(_ident: Ident) -> (*mut u8, usize)
Load a chunk with a given identifier, assumes it exists
unsafe fn unload_chunk(ptr: *mut u8, size: usize)
[src]
unsafe fn unload_chunk(ptr: *mut u8, size: usize)
Deallocate a chunk, but keep any persisted representation of it
unsafe fn destroy_chunk(ptr: *mut u8, size: usize)
[src]
unsafe fn destroy_chunk(ptr: *mut u8, size: usize)
Deallocate a chunk and delete any persisted representation of it
Auto Trait Implementations
impl Send for HeapHandler
impl Send for HeapHandler
impl Sync for HeapHandler
impl Sync for HeapHandler