Home
last modified time | relevance | path

Searched refs:VOffsetT (Results 1 – 17 of 17) sorted by relevance

/external/flatbuffers/rust/flatbuffers/src/
Dvtable.rs46 read_scalar_at::<VOffsetT>(self.buf, self.loc) as usize in num_bytes()
49 let n = read_scalar_at::<VOffsetT>(self.buf, self.loc + SIZE_VOFFSET); in object_inline_num_bytes()
52 pub fn get_field(&self, idx: usize) -> VOffsetT { in get_field() argument
57 read_scalar_at::<VOffsetT>( in get_field()
62 pub fn get(&self, byte_loc: VOffsetT) -> VOffsetT { in get() argument
67 read_scalar_at::<VOffsetT>(self.buf, self.loc + byte_loc as usize) in get()
77 pub fn field_index_to_field_offset(field_id: VOffsetT) -> VOffsetT { in field_index_to_field_offset() argument
80 ((field_id + fixed_fields) * (SIZE_VOFFSET as VOffsetT)) as VOffsetT in field_index_to_field_offset()
84 pub fn field_offset_to_field_index(field_o: VOffsetT) -> VOffsetT { in field_offset_to_field_index() argument
87 (field_o / (SIZE_VOFFSET as VOffsetT)) - fixed_fields in field_offset_to_field_index()
Dvtable_writer.rs42 pub fn write_vtable_byte_length(&mut self, n: VOffsetT) { in write_vtable_byte_length() argument
43 emplace_scalar::<VOffsetT>(&mut self.buf[..SIZE_VOFFSET], n); in write_vtable_byte_length()
49 pub fn write_object_inline_size(&mut self, n: VOffsetT) { in write_object_inline_size() argument
50 emplace_scalar::<VOffsetT>(&mut self.buf[SIZE_VOFFSET..2 * SIZE_VOFFSET], n); in write_object_inline_size()
58 pub fn get_field_offset(&self, vtable_offset: VOffsetT) -> VOffsetT { in get_field_offset() argument
60 read_scalar::<VOffsetT>(&self.buf[idx..idx + SIZE_VOFFSET]) in get_field_offset()
68 pub fn write_field_offset(&mut self, vtable_offset: VOffsetT, object_data_offset: VOffsetT) { in write_field_offset() argument
70 emplace_scalar::<VOffsetT>(&mut self.buf[idx..idx + SIZE_VOFFSET], object_data_offset); in write_field_offset()
Dbuilder.rs37 id: VOffsetT,
144 pub fn push_slot<X: Push + PartialEq>(&mut self, slotoff: VOffsetT, x: X, default: X) { in push_slot() argument
155 pub fn push_slot_always<X: Push>(&mut self, slotoff: VOffsetT, x: X) { in push_slot_always() argument
319 slot_byte_loc: VOffsetT, in required() argument
359 fn track_field(&mut self, slot_off: VOffsetT, off: UOffsetT) { in track_field() argument
429 vtfw.write_vtable_byte_length(vtable_byte_len as VOffsetT); in write_vtable()
430 vtfw.write_object_inline_size(table_object_size as VOffsetT); in write_vtable()
434 let pos: VOffsetT = (object_revloc_to_vtable.value() - fl.off) as VOffsetT; in write_vtable()
Dprimitives.rs60 pub type VOffsetT = i16; typedef
169 pub struct ForwardsVOffset<T>(VOffsetT, PhantomData<T>);
172 pub fn value(&self) -> VOffsetT { in value() argument
182 let off = read_scalar::<VOffsetT>(slice) as usize; in follow()
Dtable.rs39 slot_byte_loc: VOffsetT, in get() argument
/external/flatbuffers/go/
Dtable.go14 func (t *Table) Offset(vtableOffset VOffsetT) VOffsetT {
133 func (t *Table) GetVOffsetT(off UOffsetT) VOffsetT {
145 func (t *Table) GetBoolSlot(slot VOffsetT, d bool) bool {
157 func (t *Table) GetByteSlot(slot VOffsetT, d byte) byte {
169 func (t *Table) GetInt8Slot(slot VOffsetT, d int8) int8 {
181 func (t *Table) GetUint8Slot(slot VOffsetT, d uint8) uint8 {
193 func (t *Table) GetInt16Slot(slot VOffsetT, d int16) int16 {
205 func (t *Table) GetUint16Slot(slot VOffsetT, d uint16) uint16 {
217 func (t *Table) GetInt32Slot(slot VOffsetT, d int32) int32 {
229 func (t *Table) GetUint32Slot(slot VOffsetT, d uint32) uint32 {
[all …]
Dencode.go13 VOffsetT uint16 type
130 func GetVOffsetT(buf []byte) VOffsetT {
131 return VOffsetT(GetUint16(buf))
226 func WriteVOffsetT(buf []byte, n VOffsetT) { argument
Dbuilder.go156 b.PrependVOffsetT(VOffsetT(off))
163 b.PrependVOffsetT(VOffsetT(objectSize))
167 b.PrependVOffsetT(VOffsetT(vBytes))
678 func (b *Builder) PrependVOffsetT(x VOffsetT) {
756 func (b *Builder) PlaceVOffsetT(x VOffsetT) {
/external/flatbuffers/tests/
Dmonster_test_generated.rs694 pub const VT_COLOR: flatbuffers::VOffsetT = 4;
772 pub const VT_ID: flatbuffers::VOffsetT = 4;
773 pub const VT_VAL: flatbuffers::VOffsetT = 6;
774 pub const VT_COUNT: flatbuffers::VOffsetT = 8;
870 pub const VT_ID: flatbuffers::VOffsetT = 4;
1003 pub const VT_POS: flatbuffers::VOffsetT = 4;
1004 pub const VT_MANA: flatbuffers::VOffsetT = 6;
1005 pub const VT_HP: flatbuffers::VOffsetT = 8;
1006 pub const VT_NAME: flatbuffers::VOffsetT = 10;
1007 pub const VT_INVENTORY: flatbuffers::VOffsetT = 14;
[all …]
Dgo_test.go515 f := flatbuffers.VOffsetT((flatbuffers.VtableMetadataFields + j) * flatbuffers.SizeVOffsetT)
1276 testTable := func(tab *flatbuffers.Table, a flatbuffers.VOffsetT, b, c, d byte) {
1564 calcVOffsetT := func(slot int) (vtableOffset flatbuffers.VOffsetT) {
1565 return flatbuffers.VOffsetT((flatbuffers.VtableMetadataFields + slot) * flatbuffers.SizeVOffsetT)
1567 calcUOffsetT := func(vtableOffset flatbuffers.VOffsetT) (valueOffset flatbuffers.UOffsetT) {
/external/flatbuffers/lua/flatbuffers/
Dview.lua25 local vtableEnd = self:Get(N.VOffsetT, vtable)
27 return self:Get(N.VOffsetT, vtable + vtableOffset)
76 N.VOffsetT:EnforceNumber(slot)
88 N.VOffsetT:EnforceNumber(slot)
89 N.VOffsetT:EnforceNumber(d)
Dbuilder.lua10 local VOffsetT = N.VOffsetT
32 if (#a * VOffsetT.bytewidth) ~= #b then
37 local x = string.unpack(VOffsetT.packFmt, b, 1 + (i - 1) * VOffsetT.bytewidth)
105 local vt2Len = string.unpack(VOffsetT.packFmt, vt2lenstr, 1)
107 local metadata = VtableMetadataFields * VOffsetT.bytewidth
136 vBytes = vBytes * VOffsetT.bytewidth
360 function mt:PrependVOffsetT(x) self:Prepend(VOffsetT, x) end
DnumTypes.lua186 m.VOffsetT = uint16_mt
/external/flatbuffers/samples/
Dmonster_generated.rs255 pub const VT_POS: flatbuffers::VOffsetT = 4;
256 pub const VT_MANA: flatbuffers::VOffsetT = 6;
257 pub const VT_HP: flatbuffers::VOffsetT = 8;
258 pub const VT_NAME: flatbuffers::VOffsetT = 10;
259 pub const VT_INVENTORY: flatbuffers::VOffsetT = 14;
260 pub const VT_COLOR: flatbuffers::VOffsetT = 16;
261 pub const VT_WEAPONS: flatbuffers::VOffsetT = 18;
262 pub const VT_EQUIPPED_TYPE: flatbuffers::VOffsetT = 20;
263 pub const VT_EQUIPPED: flatbuffers::VOffsetT = 22;
430 pub const VT_NAME: flatbuffers::VOffsetT = 4;
[all …]
/external/flatbuffers/tests/namespace_test/
Dnamespace_test2_generated.rs58 pub const VT_FOO_TABLE: flatbuffers::VOffsetT = 4;
59 pub const VT_FOO_ENUM: flatbuffers::VOffsetT = 6;
60 pub const VT_FOO_STRUCT: flatbuffers::VOffsetT = 8;
156 pub const VT_REFER_TO_C: flatbuffers::VOffsetT = 4;
245 pub const VT_REFER_TO_A1: flatbuffers::VOffsetT = 4;
246 pub const VT_REFER_TO_A2: flatbuffers::VOffsetT = 6;
Dnamespace_test1_generated.rs189 pub const VT_FOO: flatbuffers::VOffsetT = 4;
/external/flatbuffers/tests/rust_usage_test/tests/
Dintegration_test.rs1028 let max_fields_per_object: flatbuffers::VOffsetT = 100; in table_of_mixed_scalars_fuzz()
1039 … let fields_per_object = (lcg.next() % (max_fields_per_object as u64)) as flatbuffers::VOffsetT; in table_of_mixed_scalars_fuzz()
1082 … let fields_per_object = (lcg.next() % (max_fields_per_object as u64)) as flatbuffers::VOffsetT; in table_of_mixed_scalars_fuzz()
1132 b.push_slot_always(fi2fo(i as flatbuffers::VOffsetT), str_offsets[i]); in table_of_byte_strings_fuzz()
1142 … let v = tab.get::<flatbuffers::ForwardsUOffset<&[u8]>>(fi2fo(i as flatbuffers::VOffsetT), None); in table_of_byte_strings_fuzz()
1166 b.push_slot_always(fi2fo(i as flatbuffers::VOffsetT), str_offsets[i]); in fuzz_table_of_strings()
1176 … let v = tab.get::<flatbuffers::ForwardsUOffset<&str>>(fi2fo(i as flatbuffers::VOffsetT), None); in fuzz_table_of_strings()
1211 b.push_slot_always(fi2fo(i as flatbuffers::VOffsetT), offs[i]); in prop()
1221 … let got = tab.get::<flatbuffers::ForwardsUOffset<&[T]>>(fi2fo(i as flatbuffers::VOffsetT), None); in prop()