Struct brotli_no_stdlib::StackAllocator []

pub struct StackAllocator<'a, T, U> where T: 'a, U: AllocatedSlice<&'a mut [T]> {
    pub nop: &'a mut [T],
    pub system_resources: U,
    pub free_list_start: usize,
    pub free_list_overflow_count: usize,
    pub initialize: fn(&mut [T]),
}

Fields

nop: &'a mut [T] system_resources: U free_list_start: usize free_list_overflow_count: usize initialize: fn(&mut [T])

Trait Implementations

impl<'a, T, U> Allocator<T> for StackAllocator<'a, T, U> where T: 'a, U: AllocatedSlice<&'a mut [T]>

type AllocatedMemory = AllocatedStackMemory<'a, T>

fn alloc_cell(&mut self, len: usize) -> AllocatedStackMemory<'a, T>

fn free_cell(&mut self, val: AllocatedStackMemory<'a, T>)