/external/flatbuffers/rust/flatbuffers/src/ |
D | vtable.rs | 43 read_scalar_at::<VOffsetT>(self.buf, self.loc) as usize in num_bytes() 46 let n = read_scalar_at::<VOffsetT>(self.buf, self.loc + SIZE_VOFFSET); in object_inline_num_bytes() 49 pub fn get_field(&self, idx: usize) -> VOffsetT { in get_field() argument 54 read_scalar_at::<VOffsetT>( in get_field() 59 pub fn get(&self, byte_loc: VOffsetT) -> VOffsetT { in get() argument 64 read_scalar_at::<VOffsetT>(self.buf, self.loc + byte_loc as usize) in get() 73 pub fn field_index_to_field_offset(field_id: VOffsetT) -> VOffsetT { in field_index_to_field_offset() argument 76 ((field_id + fixed_fields) * (SIZE_VOFFSET as VOffsetT)) as VOffsetT in field_index_to_field_offset() 80 pub fn field_offset_to_field_index(field_o: VOffsetT) -> VOffsetT { in field_offset_to_field_index() argument 83 (field_o / (SIZE_VOFFSET as VOffsetT)) - fixed_fields in field_offset_to_field_index()
|
D | vtable_writer.rs | 42 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_at::<VOffsetT>(&self.buf, idx) 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()
|
D | builder.rs | 37 id: VOffsetT, 149 pub fn push_slot<X: Push + PartialEq>(&mut self, slotoff: VOffsetT, x: X, default: X) { in push_slot() argument 160 pub fn push_slot_always<X: Push>(&mut self, slotoff: VOffsetT, x: X) { in push_slot_always() argument 350 slot_byte_loc: VOffsetT, in required() argument 391 fn track_field(&mut self, slot_off: VOffsetT, off: UOffsetT) { in track_field() argument 461 vtfw.write_vtable_byte_length(vtable_byte_len as VOffsetT); in write_vtable() 462 vtfw.write_object_inline_size(table_object_size as VOffsetT); in write_vtable() 466 let pos: VOffsetT = (object_revloc_to_vtable.value() - fl.off) as VOffsetT; in write_vtable()
|
D | primitives.rs | 60 pub type VOffsetT = i16; typedef 189 pub struct ForwardsVOffset<T>(VOffsetT, PhantomData<T>); 192 pub fn value(&self) -> VOffsetT { in value() argument 202 let off = read_scalar::<VOffsetT>(slice) as usize; in follow()
|
D | table.rs | 39 slot_byte_loc: VOffsetT, in get() argument
|
/external/flatbuffers/go/ |
D | table.go | 14 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 …]
|
D | encode.go | 13 VOffsetT uint16 type 130 func GetVOffsetT(buf []byte) VOffsetT { 131 return VOffsetT(GetUint16(buf)) 226 func WriteVOffsetT(buf []byte, n VOffsetT) { argument
|
D | builder.go | 157 b.PrependVOffsetT(VOffsetT(off)) 164 b.PrependVOffsetT(VOffsetT(objectSize)) 168 b.PrependVOffsetT(VOffsetT(vBytes)) 693 func (b *Builder) PrependVOffsetT(x VOffsetT) { 771 func (b *Builder) PlaceVOffsetT(x VOffsetT) {
|
/external/flatbuffers/tests/ |
D | monster_test_generated.rs | 791 pub const VT_COLOR: flatbuffers::VOffsetT = 4; 873 pub const VT_ID: flatbuffers::VOffsetT = 4; 874 pub const VT_VAL: flatbuffers::VOffsetT = 6; 875 pub const VT_COUNT: flatbuffers::VOffsetT = 8; 975 pub const VT_ID: flatbuffers::VOffsetT = 4; 1113 pub const VT_POS: flatbuffers::VOffsetT = 4; 1114 pub const VT_MANA: flatbuffers::VOffsetT = 6; 1115 pub const VT_HP: flatbuffers::VOffsetT = 8; 1116 pub const VT_NAME: flatbuffers::VOffsetT = 10; 1117 pub const VT_INVENTORY: flatbuffers::VOffsetT = 14; [all …]
|
D | go_test.go | 562 f := flatbuffers.VOffsetT((flatbuffers.VtableMetadataFields + j) * flatbuffers.SizeVOffsetT) 1323 testTable := func(tab *flatbuffers.Table, a flatbuffers.VOffsetT, b, c, d byte) { 1671 calcVOffsetT := func(slot int) (vtableOffset flatbuffers.VOffsetT) { 1672 return flatbuffers.VOffsetT((flatbuffers.VtableMetadataFields + slot) * flatbuffers.SizeVOffsetT) 1674 calcUOffsetT := func(vtableOffset flatbuffers.VOffsetT) (valueOffset flatbuffers.UOffsetT) {
|
/external/flatbuffers/samples/ |
D | monster_generated.rs | 255 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/lua/flatbuffers/ |
D | view.lua | 42 self.vtableEnd = self:Get(N.VOffsetT, vtable) 90 N.VOffsetT:EnforceNumber(slot) 102 N.VOffsetT:EnforceNumbers(slot, d)
|
D | builder.lua | 10 local VOffsetT = N.VOffsetT 37 local x = string.unpack(VOffsetT.packFmt, b, 1 + (i - 1) * 2) 122 local vt2Len = string.unpack(VOffsetT.packFmt, vt2lenstr, 1) 375 function mt:PrependVOffsetT(x) self:Prepend(VOffsetT, x) end
|
D | numTypes.lua | 205 m.VOffsetT = uint16_mt
|
/external/flatbuffers/tests/namespace_test/ |
D | namespace_test2_generated.rs | 57 pub const VT_FOO_TABLE: flatbuffers::VOffsetT = 4; 58 pub const VT_FOO_ENUM: flatbuffers::VOffsetT = 6; 59 pub const VT_FOO_STRUCT: flatbuffers::VOffsetT = 8; 155 pub const VT_REFER_TO_C: flatbuffers::VOffsetT = 4; 244 pub const VT_REFER_TO_A1: flatbuffers::VOffsetT = 4; 245 pub const VT_REFER_TO_A2: flatbuffers::VOffsetT = 6;
|
D | namespace_test1_generated.rs | 185 pub const VT_FOO: flatbuffers::VOffsetT = 4;
|
/external/flatbuffers/tests/include_test/ |
D | include_test1_generated.rs | 45 pub const VT_B: flatbuffers::VOffsetT = 4;
|
/external/flatbuffers/tests/include_test/sub/ |
D | include_test2_generated.rs | 177 pub const VT_A: flatbuffers::VOffsetT = 4;
|
/external/flatbuffers/tests/rust_usage_test/tests/ |
D | integration_test.rs | 1205 let max_fields_per_object: flatbuffers::VOffsetT = 100; in table_of_mixed_scalars_fuzz() 1216 … let fields_per_object = (lcg.next() % (max_fields_per_object as u64)) as flatbuffers::VOffsetT; in table_of_mixed_scalars_fuzz() 1259 … let fields_per_object = (lcg.next() % (max_fields_per_object as u64)) as flatbuffers::VOffsetT; in table_of_mixed_scalars_fuzz() 1309 b.push_slot_always(fi2fo(i as flatbuffers::VOffsetT), str_offsets[i]); in table_of_byte_strings_fuzz() 1319 …::<flatbuffers::ForwardsUOffset<flatbuffers::Vector<u8>>>(fi2fo(i as flatbuffers::VOffsetT), None); in table_of_byte_strings_fuzz() 1345 b.push_slot_always(fi2fo(i as flatbuffers::VOffsetT), str_offsets[i]); in fuzz_table_of_strings() 1355 … let v = tab.get::<flatbuffers::ForwardsUOffset<&str>>(fi2fo(i as flatbuffers::VOffsetT), None); in fuzz_table_of_strings() 1396 b.push_slot_always(fi2fo(i as flatbuffers::VOffsetT), offs[i]); in prop() 1406 …t::<flatbuffers::ForwardsUOffset<flatbuffers::Vector<T>>>(fi2fo(i as flatbuffers::VOffsetT), None); in prop()
|