Home
last modified time | relevance | path

Searched refs:UOffsetT (Results 1 – 25 of 43) sorted by relevance

12

/external/flatbuffers/tests/MyGame/Example/
DMonster.go16 func GetRootAsMonster(buf []byte, offset flatbuffers.UOffsetT) *Monster { argument
23 func (rcv *Monster) Init(buf []byte, i flatbuffers.UOffsetT) {
33 o := flatbuffers.UOffsetT(rcv._tab.Offset(4))
46 o := flatbuffers.UOffsetT(rcv._tab.Offset(6))
58 o := flatbuffers.UOffsetT(rcv._tab.Offset(8))
70 o := flatbuffers.UOffsetT(rcv._tab.Offset(10))
78 o := flatbuffers.UOffsetT(rcv._tab.Offset(14))
81 return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1))
87 o := flatbuffers.UOffsetT(rcv._tab.Offset(14))
95 o := flatbuffers.UOffsetT(rcv._tab.Offset(14))
[all …]
DTypeAliases.go13 func GetRootAsTypeAliases(buf []byte, offset flatbuffers.UOffsetT) *TypeAliases { argument
20 func (rcv *TypeAliases) Init(buf []byte, i flatbuffers.UOffsetT) {
30 o := flatbuffers.UOffsetT(rcv._tab.Offset(4))
42 o := flatbuffers.UOffsetT(rcv._tab.Offset(6))
54 o := flatbuffers.UOffsetT(rcv._tab.Offset(8))
66 o := flatbuffers.UOffsetT(rcv._tab.Offset(10))
78 o := flatbuffers.UOffsetT(rcv._tab.Offset(12))
90 o := flatbuffers.UOffsetT(rcv._tab.Offset(14))
102 o := flatbuffers.UOffsetT(rcv._tab.Offset(16))
114 o := flatbuffers.UOffsetT(rcv._tab.Offset(18))
[all …]
DVec3.go13 func (rcv *Vec3) Init(buf []byte, i flatbuffers.UOffsetT) {
23 return rcv._tab.GetFloat32(rcv._tab.Pos + flatbuffers.UOffsetT(0))
26 return rcv._tab.MutateFloat32(rcv._tab.Pos+flatbuffers.UOffsetT(0), n)
30 return rcv._tab.GetFloat32(rcv._tab.Pos + flatbuffers.UOffsetT(4))
33 return rcv._tab.MutateFloat32(rcv._tab.Pos+flatbuffers.UOffsetT(4), n)
37 return rcv._tab.GetFloat32(rcv._tab.Pos + flatbuffers.UOffsetT(8))
40 return rcv._tab.MutateFloat32(rcv._tab.Pos+flatbuffers.UOffsetT(8), n)
44 return rcv._tab.GetFloat64(rcv._tab.Pos + flatbuffers.UOffsetT(16))
47 return rcv._tab.MutateFloat64(rcv._tab.Pos+flatbuffers.UOffsetT(16), n)
51 return rcv._tab.GetInt8(rcv._tab.Pos + flatbuffers.UOffsetT(24))
[all …]
DStat.go13 func GetRootAsStat(buf []byte, offset flatbuffers.UOffsetT) *Stat { argument
20 func (rcv *Stat) Init(buf []byte, i flatbuffers.UOffsetT) {
30 o := flatbuffers.UOffsetT(rcv._tab.Offset(4))
38 o := flatbuffers.UOffsetT(rcv._tab.Offset(6))
50 o := flatbuffers.UOffsetT(rcv._tab.Offset(8))
64 func StatAddId(builder *flatbuffers.Builder, id flatbuffers.UOffsetT) { argument
65 builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(id), 0)
73 func StatEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT {
DAbility.go13 func (rcv *Ability) Init(buf []byte, i flatbuffers.UOffsetT) {
23 return rcv._tab.GetUint32(rcv._tab.Pos + flatbuffers.UOffsetT(0))
26 return rcv._tab.MutateUint32(rcv._tab.Pos+flatbuffers.UOffsetT(0), n)
30 return rcv._tab.GetUint32(rcv._tab.Pos + flatbuffers.UOffsetT(4))
33 return rcv._tab.MutateUint32(rcv._tab.Pos+flatbuffers.UOffsetT(4), n)
36 func CreateAbility(builder *flatbuffers.Builder, id uint32, distance uint32) flatbuffers.UOffsetT {
DTest.go13 func (rcv *Test) Init(buf []byte, i flatbuffers.UOffsetT) {
23 return rcv._tab.GetInt16(rcv._tab.Pos + flatbuffers.UOffsetT(0))
26 return rcv._tab.MutateInt16(rcv._tab.Pos+flatbuffers.UOffsetT(0), n)
30 return rcv._tab.GetInt8(rcv._tab.Pos + flatbuffers.UOffsetT(2))
33 return rcv._tab.MutateInt8(rcv._tab.Pos+flatbuffers.UOffsetT(2), n)
36 func CreateTest(builder *flatbuffers.Builder, a int16, b int8) flatbuffers.UOffsetT {
DReferrable.go13 func GetRootAsReferrable(buf []byte, offset flatbuffers.UOffsetT) *Referrable { argument
20 func (rcv *Referrable) Init(buf []byte, i flatbuffers.UOffsetT) {
30 o := flatbuffers.UOffsetT(rcv._tab.Offset(4))
47 func ReferrableEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT {
DTestSimpleTableWithEnum.go13 func GetRootAsTestSimpleTableWithEnum(buf []byte, offset flatbuffers.UOffsetT) *TestSimpleTableWith… argument
20 func (rcv *TestSimpleTableWithEnum) Init(buf []byte, i flatbuffers.UOffsetT) {
30 o := flatbuffers.UOffsetT(rcv._tab.Offset(4))
47 func TestSimpleTableWithEnumEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT {
/external/flatbuffers/go/
Dtable.go8 Pos UOffsetT // Always < 1<<31.
15 vtable := UOffsetT(SOffsetT(t.Pos) - t.GetSOffsetT(t.Pos))
17 return t.GetVOffsetT(vtable + UOffsetT(vtableOffset))
23 func (t *Table) Indirect(off UOffsetT) UOffsetT {
28 func (t *Table) String(off UOffsetT) string {
34 func (t *Table) ByteVector(off UOffsetT) []byte {
36 start := off + UOffsetT(SizeUOffsetT)
43 func (t *Table) VectorLen(off UOffsetT) int {
51 func (t *Table) Vector(off UOffsetT) UOffsetT {
55 x += UOffsetT(SizeUOffsetT)
[all …]
Dbuilder.go14 vtable []UOffsetT
15 objectEnd UOffsetT
16 vtables []UOffsetT
17 head UOffsetT
33 b.head = UOffsetT(initialSize)
35 b.vtables = make([]UOffsetT, 0, 16) // sensible default capacity
55 b.head = UOffsetT(len(b.Bytes))
76 b.vtable = make([]UOffsetT, numfields)
106 func (b *Builder) WriteVtable() (n UOffsetT) {
112 existingVtable := UOffsetT(0)
[all …]
Dencode.go11 UOffsetT uint32 type
120 func GetUOffsetT(buf []byte) UOffsetT {
121 return UOffsetT(GetInt32(buf))
236 func WriteUOffsetT(buf []byte, n UOffsetT) { argument
/external/flatbuffers/lua/flatbuffers/
Dview.lua10 N.UOffsetT:EnforceNumber(pos)
33 N.UOffsetT:EnforceNumber(off)
34 return off + N.UOffsetT:Unpack(self.bytes, off)
38 N.UOffsetT:EnforceNumber(off)
39 off = off + N.UOffsetT:Unpack(self.bytes, off)
40 local start = off + N.UOffsetT.bytewidth
41 local length = N.UOffsetT:Unpack(self.bytes, off)
46 N.UOffsetT:EnforceNumber(off)
48 off = off + N.UOffsetT:Unpack(self.bytes, off)
49 return N.UOffsetT:Unpack(self.bytes, off)
[all …]
Dbuilder.lua11 local UOffsetT = N.UOffsetT
31 UOffsetT:EnforceNumber(objectStart)
218 self:Prep(UOffsetT.bytewidth, 0)
221 local off2 = soffset - off + UOffsetT.bytewidth
222 self:Place(off2, UOffsetT)
239 self:Place(vectorNumElements, UOffsetT)
249 self:Prep(UOffsetT.bytewidth, (#s + 1)*Uint8.bytewidth)
263 self:Prep(UOffsetT.bytewidth, #x*Uint8.bytewidth)
280 UOffsetT:EnforceNumber(rootTable)
281 local prepSize = UOffsetT.bytewidth
[all …]
/external/flatbuffers/tests/namespace_test/NamespaceA/
DTableInFirstNS.go15 func GetRootAsTableInFirstNS(buf []byte, offset flatbuffers.UOffsetT) *TableInFirstNS { argument
22 func (rcv *TableInFirstNS) Init(buf []byte, i flatbuffers.UOffsetT) {
32 o := flatbuffers.UOffsetT(rcv._tab.Offset(4))
45 o := flatbuffers.UOffsetT(rcv._tab.Offset(6))
57 o := flatbuffers.UOffsetT(rcv._tab.Offset(8))
72 func TableInFirstNSAddFooTable(builder *flatbuffers.Builder, fooTable flatbuffers.UOffsetT) { argument
73 builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(fooTable), 0)
78 func TableInFirstNSAddFooStruct(builder *flatbuffers.Builder, fooStruct flatbuffers.UOffsetT) { argument
79 builder.PrependStructSlot(2, flatbuffers.UOffsetT(fooStruct), 0)
81 func TableInFirstNSEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT {
DTableInC.go12 func (rcv *TableInC) Init(buf []byte, i flatbuffers.UOffsetT) {
18 o := flatbuffers.UOffsetT(rcv._tab.Offset(4))
31 o := flatbuffers.UOffsetT(rcv._tab.Offset(6))
44 … *flatbuffers.Builder, referToA1 flatbuffers.UOffsetT) { builder.PrependUOffsetTSlot(0, flatbuffer… argument
45 … *flatbuffers.Builder, referToA2 flatbuffers.UOffsetT) { builder.PrependUOffsetTSlot(1, flatbuffer… argument
46 func TableInCEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { return builder.EndObject() }
DSecondTableInA.go15 func GetRootAsSecondTableInA(buf []byte, offset flatbuffers.UOffsetT) *SecondTableInA { argument
22 func (rcv *SecondTableInA) Init(buf []byte, i flatbuffers.UOffsetT) {
32 o := flatbuffers.UOffsetT(rcv._tab.Offset(4))
47 func SecondTableInAAddReferToC(builder *flatbuffers.Builder, referToC flatbuffers.UOffsetT) { argument
48 builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(referToC), 0)
50 func SecondTableInAEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT {
/external/flatbuffers/tests/namespace_test/NamespaceC/
DTableInC.go15 func GetRootAsTableInC(buf []byte, offset flatbuffers.UOffsetT) *TableInC { argument
22 func (rcv *TableInC) Init(buf []byte, i flatbuffers.UOffsetT) {
32 o := flatbuffers.UOffsetT(rcv._tab.Offset(4))
45 o := flatbuffers.UOffsetT(rcv._tab.Offset(6))
60 func TableInCAddReferToA1(builder *flatbuffers.Builder, referToA1 flatbuffers.UOffsetT) { argument
61 builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(referToA1), 0)
63 func TableInCAddReferToA2(builder *flatbuffers.Builder, referToA2 flatbuffers.UOffsetT) { argument
64 builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(referToA2), 0)
66 func TableInCEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT {
/external/flatbuffers/rust/flatbuffers/src/
Dbuilder.rs36 off: UOffsetT,
48 written_vtable_revpos: Vec<UOffsetT>,
137 WIPOffset::new(self.used_space() as UOffsetT) in push()
178 WIPOffset::new(self.used_space() as UOffsetT) in start_table()
220 let o = self.push::<UOffsetT>(num_elems as UOffsetT); in end_vector()
240 self.push(data.len() as UOffsetT); in create_byte_string()
241 WIPOffset::new(self.used_space() as UOffsetT) in create_byte_string()
261 self.push(items.len() as UOffsetT); in create_vector_direct()
263 WIPOffset::new(self.used_space() as UOffsetT) in create_vector_direct()
297 WIPOffset::new(self.push::<UOffsetT>(items.len() as UOffsetT).value()) in create_vector()
[all …]
Dprimitives.rs57 pub type UOffsetT = u32; typedef
79 pub struct WIPOffset<T>(UOffsetT, PhantomData<T>);
97 type Target = UOffsetT;
99 fn deref(&self) -> &UOffsetT { in deref() argument
106 pub fn new(o: UOffsetT) -> WIPOffset<T> { in new()
121 pub fn value(&self) -> UOffsetT { in value() argument
131 let n = (SIZE_UOFFSET + rest.len() - self.value() as usize) as UOffsetT; in push()
132 emplace_scalar::<UOffsetT>(dst, n); in push()
148 pub struct ForwardsUOffset<T>(UOffsetT, PhantomData<T>);
151 pub fn value(&self) -> UOffsetT { in value() argument
Dvector.rs41 read_scalar::<UOffsetT>(&self.0[self.1 as usize..]) as usize in len()
62 let len = read_scalar::<UOffsetT>(&buf[loc..loc + SIZE_UOFFSET]) as usize; in safe_slice()
100 let len = read_scalar::<UOffsetT>(&buf[loc..loc + SIZE_UOFFSET]) as usize; in follow()
110 let len = read_scalar::<UOffsetT>(&buf[loc..loc + SIZE_UOFFSET]) as usize; in follow_slice_helper()
/external/flatbuffers/tests/namespace_test/NamespaceA/NamespaceB/
DStructInNestedNS.go13 func (rcv *StructInNestedNS) Init(buf []byte, i flatbuffers.UOffsetT) {
23 return rcv._tab.GetInt32(rcv._tab.Pos + flatbuffers.UOffsetT(0))
26 return rcv._tab.MutateInt32(rcv._tab.Pos+flatbuffers.UOffsetT(0), n)
30 return rcv._tab.GetInt32(rcv._tab.Pos + flatbuffers.UOffsetT(4))
33 return rcv._tab.MutateInt32(rcv._tab.Pos+flatbuffers.UOffsetT(4), n)
36 func CreateStructInNestedNS(builder *flatbuffers.Builder, a int32, b int32) flatbuffers.UOffsetT {
DTableInNestedNS.go13 func GetRootAsTableInNestedNS(buf []byte, offset flatbuffers.UOffsetT) *TableInNestedNS { argument
20 func (rcv *TableInNestedNS) Init(buf []byte, i flatbuffers.UOffsetT) {
30 o := flatbuffers.UOffsetT(rcv._tab.Offset(4))
47 func TableInNestedNSEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT {
/external/flatbuffers/docs/source/
DGoApi_generated.txt46 func (b *Builder) CreateByteString(s []byte) UOffsetT
49 func (b *Builder) CreateByteVector(v []byte) UOffsetT
52 func (b *Builder) CreateString(s string) UOffsetT
55 func (b *Builder) EndVector(vectorNumElems int) UOffsetT
58 func (b *Builder) Finish(rootTable UOffsetT)
66 func (b *Builder) Head() UOffsetT
102 func (b *Builder) PrependUOffsetT(off UOffsetT)
103 PrependUOffsetT prepends an UOffsetT, relative to where it will be
/external/flatbuffers/tests/MyGame/
DInParentNamespace.go13 func GetRootAsInParentNamespace(buf []byte, offset flatbuffers.UOffsetT) *InParentNamespace { argument
20 func (rcv *InParentNamespace) Init(buf []byte, i flatbuffers.UOffsetT) {
32 func InParentNamespaceEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT {
/external/flatbuffers/tests/MyGame/Example2/
DMonster.go13 func GetRootAsMonster(buf []byte, offset flatbuffers.UOffsetT) *Monster { argument
20 func (rcv *Monster) Init(buf []byte, i flatbuffers.UOffsetT) {
32 func MonsterEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT {

12