Function brotli::enc::combined_alloc::allocate

source ยท
pub(crate) fn allocate<T, A: Allocator<T>>(
    alloc: &mut A,
    len: usize,
) -> A::AllocatedMemory
Expand description

Helper function to allocate memory with the given allocator (may crash if the len is 0).