Home
last modified time | relevance | path

Searched refs:SIZE_UOFFSET (Results 1 – 3 of 3) sorted by relevance

/external/flatbuffers/rust/flatbuffers/src/
Dvector.rs51 T::follow(self.0, self.1 as usize + SIZE_UOFFSET + sz * idx) in get()
62 let len = read_scalar::<UOffsetT>(&buf[loc..loc + SIZE_UOFFSET]) as usize; in safe_slice()
63 let data_buf = &buf[loc + SIZE_UOFFSET..loc + SIZE_UOFFSET + len * sz]; in safe_slice()
100 let len = read_scalar::<UOffsetT>(&buf[loc..loc + SIZE_UOFFSET]) as usize; in follow()
101 let slice = &buf[loc + SIZE_UOFFSET..loc + SIZE_UOFFSET + len]; in follow()
110 let len = read_scalar::<UOffsetT>(&buf[loc..loc + SIZE_UOFFSET]) as usize; in follow_slice_helper()
111 let data_buf = &buf[loc + SIZE_UOFFSET..loc + SIZE_UOFFSET + len * sz]; in follow_slice_helper()
Dprimitives.rs47 pub const SIZE_UOFFSET: usize = SIZE_U32; constant
50 pub const SIZE_SIZEPREFIX: usize = SIZE_UOFFSET;
131 let n = (SIZE_UOFFSET + rest.len() - self.value() as usize) as UOffsetT; in push()
160 let slice = &buf[loc..loc + SIZE_UOFFSET]; in follow()
244 T::follow(buf, loc + SIZE_UOFFSET) in follow()
Dbuilder.rs207 self.align(num_items * T::size(), T::alignment().max_of(SIZE_UOFFSET)); in start_vector()
237 self.align(data.len() + 1, PushAlignment::new(SIZE_UOFFSET)); in create_byte_string()
254 self.align(items.len() * elem_size, T::alignment().max_of(SIZE_UOFFSET)); in create_vector_direct()
293 self.align(items.len() * elem_size, T::alignment().max_of(SIZE_UOFFSET)); in create_vector()
528 let a = SIZE_UOFFSET; in finish_with_opts()
530 let b = if size_prefixed { SIZE_UOFFSET } else { 0 }; in finish_with_opts()