Struct capnp::private::arena::SegmentBuilder [] [src]

pub struct SegmentBuilder {
    pub reader: SegmentReader,
    pub id: SegmentId,
    // some fields omitted
}

Fields

reader: SegmentReader id: SegmentId

Methods

impl SegmentBuilder
[src]

fn new(arena: *mut BuilderArena, limiter: Rc<ReadLimiter>, id: SegmentId, ptr: *mut Word, size: WordCount32) -> SegmentBuilder

fn get_word_offset_to(&mut self, ptr: *mut Word) -> WordCount32

fn current_size(&self) -> WordCount32

fn allocate(&mut self, amount: WordCount32) -> Option<*mut Word>

fn get_ptr_unchecked(&self, offset: WordCount32) -> *mut Word

fn get_segment_id(&self) -> SegmentId

fn get_arena<'a>(&'a mut self) -> *mut BuilderArena

fn currently_allocated<'a>(&'a self) -> &'a [Word]

Trait Implementations

impl Send for SegmentBuilder
[src]