Struct capnp::message::ScratchSpaceHeapAllocator [] [src]

pub struct ScratchSpaceHeapAllocator<'a, 'b: 'a> {
    // some fields omitted
}

Methods

impl<'a, 'b: 'a> ScratchSpaceHeapAllocator<'a, 'b>
[src]

fn new(scratch_space: &'a mut ScratchSpace<'b>) -> ScratchSpaceHeapAllocator<'a, 'b>

fn second_segment_words(self, value: u32) -> ScratchSpaceHeapAllocator<'a, 'b>

fn allocation_strategy(self, value: AllocationStrategy) -> ScratchSpaceHeapAllocator<'a, 'b>

Trait Implementations

impl<'a, 'b: 'a> Allocator for ScratchSpaceHeapAllocator<'a, 'b>
[src]

fn allocate_segment(&mut self, minimum_size: u32) -> (*mut Word, u32)

Allocates memory for a new segment, returning a pointer to the start of the segment and a u32 indicating the length of the segment. Read more

fn pre_drop(&mut self, segment0_currently_allocated: u32)