Trait jpegxl_rs::memory::JxlMemoryManager[][src]

pub trait JxlMemoryManager {
    fn alloc(&self) -> AllocFn;
fn free(&self) -> FreeFn; fn manager(&self) -> JxlMemoryManager { ... } }
Expand description

General trait for a memory manager

Required methods

Return a custom allocator function

Return a custom deallocator function

Provided methods

Helper conversion function for C API

Implementors