Home | History | Annotate | Download | only in tests

Lines Matching refs:Table

232 		// initialize a Table from a union field Test(...)
233 var table2 flatbuffers.Table
238 // initialize a Monster from the Table from the union
509 table := &flatbuffers.Table{
520 check("bool", boolVal, table.GetBoolSlot(f, false))
522 check("int8", int8Val, table.GetInt8Slot(f, 0))
524 check("uint8", uint8Val, table.GetUint8Slot(f, 0))
526 check("int16", int16Val, table.GetInt16Slot(f, 0))
528 check("uint16", uint16Val, table.GetUint16Slot(f, 0))
530 check("int32", int32Val, table.GetInt32Slot(f, 0))
532 check("uint32", uint32Val, table.GetUint32Slot(f, 0))
534 check("int64", int64Val, table.GetInt64Slot(f, 0))
536 check("uint64", uint64Val, table.GetUint64Slot(f, 0))
538 check("float32", float32Val, table.GetFloat32Slot(f, 0))
540 check("float64", float64Val, table.GetFloat64Slot(f, 0))
897 // test 16: table with some elements
906 12, 0, 0, 0, // root of table: points to vtable offset
920 // test 17: one unfinished table and one finished table
936 16, 0, 0, 0, // root of table: points to object
950 12, 0, 0, 0, // root of table: points to object
977 24, 0, 0, 0, // root of table: points to vtable offset
1011 16, 0, 0, 0, // root of table: points to vtable offset
1187 // CheckTableAccessors checks that the table accessors work as expected.
1197 if bytes.Compare(vec3Bytes, vec3.Table().Bytes) != 0 {
1198 fail("invalid vec3 table")
1201 // test table accessor
1214 if bytes.Compare(statBytes, stat.Table().Bytes) != 0 {
1215 fail("invalid stat table")
1272 table0 := &flatbuffers.Table{Bytes: b.Bytes, Pos: flatbuffers.UOffsetT(len(b.Bytes)) - obj0}
1273 table1 := &flatbuffers.Table{Bytes: b.Bytes, Pos: flatbuffers.UOffsetT(len(b.Bytes)) - obj1}
1274 table2 := &flatbuffers.Table{Bytes: b.Bytes, Pos: flatbuffers.UOffsetT(len(b.Bytes)) - obj2}
1276 testTable := func(tab *flatbuffers.Table, a flatbuffers.VOffsetT, b, c, d byte) {
1361 // CheckFinishedBytesError verifies that `FinishedBytes` panics if the table
1559 t := &flatbuffers.Table{
1715 reuse_table2 := flatbuffers.Table{}