Home
last modified time | relevance | path

Searched refs:fbb (Results 1 – 25 of 52) sorted by relevance

123

/external/flatbuffers/tests/FlatBuffers.Test/
DFlatBufferBuilderTests.cs24 var fbb = new FlatBufferBuilder(16) {ForceDefaults = forceDefaults}; in CreateBuffer()
25 fbb.StartObject(1); in CreateBuffer()
26 return fbb; in CreateBuffer()
32 var fbb = CreateBuffer(); in FlatBufferBuilder_WithForceDefaults_WhenAddBool_AndDefaultValue_OffsetIncreasesBySize()
33 var storedOffset = fbb.Offset; in FlatBufferBuilder_WithForceDefaults_WhenAddBool_AndDefaultValue_OffsetIncreasesBySize()
34 fbb.AddBool(0, false, false); in FlatBufferBuilder_WithForceDefaults_WhenAddBool_AndDefaultValue_OffsetIncreasesBySize()
35 var endOffset = fbb.Offset; in FlatBufferBuilder_WithForceDefaults_WhenAddBool_AndDefaultValue_OffsetIncreasesBySize()
42 var fbb = CreateBuffer(); in FlatBufferBuilder_WithForceDefaults_WhenAddSByte_AndDefaultValue_OffsetIncreasesBySize()
43 var storedOffset = fbb.Offset; in FlatBufferBuilder_WithForceDefaults_WhenAddSByte_AndDefaultValue_OffsetIncreasesBySize()
44 fbb.AddSbyte(0, 0, 0); in FlatBufferBuilder_WithForceDefaults_WhenAddSByte_AndDefaultValue_OffsetIncreasesBySize()
[all …]
DFlatBuffersExampleTests.cs40 var fbb = new FlatBufferBuilder(1); in CanCreateNewFlatBufferFromScratch()
42 …StringOffset[] names = { fbb.CreateString("Frodo"), fbb.CreateString("Barney"), fbb.CreateString("… in CanCreateNewFlatBufferFromScratch()
44 Monster.StartMonster(fbb); in CanCreateNewFlatBufferFromScratch()
45 Monster.AddName(fbb, names[0]); in CanCreateNewFlatBufferFromScratch()
46 off[0] = Monster.EndMonster(fbb); in CanCreateNewFlatBufferFromScratch()
47 Monster.StartMonster(fbb); in CanCreateNewFlatBufferFromScratch()
48 Monster.AddName(fbb, names[1]); in CanCreateNewFlatBufferFromScratch()
49 off[1] = Monster.EndMonster(fbb); in CanCreateNewFlatBufferFromScratch()
50 Monster.StartMonster(fbb); in CanCreateNewFlatBufferFromScratch()
51 Monster.AddName(fbb, names[2]); in CanCreateNewFlatBufferFromScratch()
[all …]
/external/flatbuffers/tests/
DJavaTest.java54 FlatBufferBuilder fbb = new FlatBufferBuilder(1); in main() local
56 TestBuilderBasics(fbb); in main()
58 TestExtendedBuffer(fbb.dataBuffer().asReadOnlyBuffer()); in main()
145 FlatBufferBuilder fbb = new FlatBufferBuilder(1); in TestNamespaceNesting() local
147 TableInNestedNS.startTableInNestedNS(fbb); in TestNamespaceNesting()
148 TableInNestedNS.addFoo(fbb, 1234); in TestNamespaceNesting()
149 int nestedTableOff = TableInNestedNS.endTableInNestedNS(fbb); in TestNamespaceNesting()
151 TableInFirstNS.startTableInFirstNS(fbb); in TestNamespaceNesting()
152 TableInFirstNS.addFooTable(fbb, nestedTableOff); in TestNamespaceNesting()
153 int off = TableInFirstNS.endTableInFirstNS(fbb); in TestNamespaceNesting()
[all …]
DJavaScriptTest.js23 var fbb = new flatbuffers.Builder(1);
27 var str = fbb.createString('MyMonster');
29 var inv = MyGame.Example.Monster.createInventoryVector(fbb, [0, 1, 2, 3, 4]);
31 var fred = fbb.createString('Fred');
32 MyGame.Example.Monster.startMonster(fbb);
33 MyGame.Example.Monster.addName(fbb, fred);
34 var mon2 = MyGame.Example.Monster.endMonster(fbb);
36 MyGame.Example.Monster.startTest4Vector(fbb, 2);
37 MyGame.Example.Test.createTest(fbb, 10, 20);
38 MyGame.Example.Test.createTest(fbb, 30, 40);
[all …]
DJavaScriptUnionVectorTest.js7 var fbb = new flatbuffers.Builder();
15 Test.Attacker.startAttacker(fbb);
16 Test.Attacker.addSwordAttackDamage(fbb, 5);
17 var attackerOffset = Test.Attacker.endAttacker(fbb);
19 var charTypesOffset = Test.Movie.createCharactersTypeVector(fbb, charTypes);
21 fbb,
23 Test.BookReader.createBookReader(fbb, 7),
25 Test.BookReader.createBookReader(fbb, 2),
29 Test.Movie.startMovie(fbb);
30 Test.Movie.addCharactersType(fbb, charTypesOffset);
[all …]
DphpUnionVectorTest.php51 $fbb = new Google\FlatBuffers\FlatBufferBuilder(1);
59 Attacker::startAttacker($fbb);
60 Attacker::addSwordAttackDamage($fbb, 5);
61 $attackerOffset = Attacker::endAttacker($fbb);
63 $charTypesOffset = Movie::createCharactersTypeVector($fbb, $charTypes);
65 $fbb,
67 BookReader::createBookReader($fbb, 7),
69 BookReader::createBookReader($fbb, 2),
73 Movie::startMovie($fbb);
74 Movie::addCharactersType($fbb, $charTypesOffset);
[all …]
DphpTest.php29 $fbb = new Google\FlatBuffers\FlatBufferBuilder(1);
32 $str = $fbb->createString("MyMonster");
33 $name = $fbb->createString('Fred');
34 \MyGame\Example\Monster::startMonster($fbb);
35 \MyGame\Example\Monster::addName($fbb, $name);
36 $enemy = \MyGame\Example\Monster::endMonster($fbb);
38 $inv = \MyGame\Example\Monster::CreateInventoryVector($fbb, array(0, 1, 2, 3, 4));
40 $fred = $fbb->createString('Fred');
41 \MyGame\Example\Monster::StartMonster($fbb);
42 \MyGame\Example\Monster::AddName($fbb, $fred);
[all …]
Dtest.cpp513 flatbuffers::FlatBufferBuilder fbb; in SizePrefixedTest() local
514 fbb.FinishSizePrefixed(CreateMonster(fbb, 0, 200, 300, in SizePrefixedTest()
515 fbb.CreateString("bob"))); in SizePrefixedTest()
518 flatbuffers::Verifier verifier(fbb.GetBufferPointer(), fbb.GetSize()); in SizePrefixedTest()
523 fbb.GetBufferPointer()); in SizePrefixedTest()
772 flatbuffers::FlatBufferBuilder fbb; in ReflectionTest() local
773 auto root_offset = flatbuffers::CopyTable(fbb, schema, *root_table, in ReflectionTest()
776 fbb.Finish(root_offset, MonsterIdentifier()); in ReflectionTest()
778 AccessFlatBufferTest(fbb.GetBufferPointer(), fbb.GetSize()); in ReflectionTest()
782 fbb.GetBufferPointer(), fbb.GetSize()), true); in ReflectionTest()
[all …]
Dmonster_test_generated.h2232 flatbuffers::FlatBufferBuilder &fbb,
2234 fbb.Finish(root, MonsterIdentifier());
/external/flatbuffers/grpc/tests/
Dgrpctest.cpp107 flatbuffers::grpc::MessageBuilder fbb; in main() local
111 auto monster_offset = CreateMonster(fbb, 0, 0, 0, fbb.CreateString("Fred")); in main()
112 fbb.Finish(monster_offset); in main()
113 auto request = fbb.ReleaseMessage<Monster>(); in main()
128 fbb.Clear(); in main()
129 auto stat_offset = CreateStat(fbb, fbb.CreateString("Fred")); in main()
130 fbb.Finish(stat_offset); in main()
131 auto request = fbb.ReleaseMessage<Stat>(); in main()
/external/tensorflow/tensorflow/contrib/lite/toco/tflite/
Dcustom_operator.h41 flexbuffers::Builder* fbb) const {} in WriteOptions() argument
49 flexbuffers::Builder fbb; in Serialize() local
50 fbb.Map( in Serialize()
51 [&]() { WriteOptions(static_cast<const TocoOperator&>(op), &fbb); }); in Serialize()
52 fbb.Finish(); in Serialize()
53 return Options::Custom(builder->CreateVector(fbb.GetBuffer())); in Serialize()
Doperator.cc211 flexbuffers::Builder* fbb) const override { in WriteOptions()
212 fbb->Int("src_data_type", DataType::Serialize(op.src_data_type)); in WriteOptions()
213 fbb->Int("dst_data_type", DataType::Serialize(op.dst_data_type)); in WriteOptions()
243 flexbuffers::Builder* fbb) const override { in WriteOptions()
244 fbb->Int("block_size", op.block_size); in WriteOptions()
255 flexbuffers::Builder* fbb) const override { in WriteOptions()
256 fbb->Float("min", op.minmax->min); in WriteOptions()
257 fbb->Float("max", op.minmax->max); in WriteOptions()
666 auto fbb = in Serialize() local
668 if (fbb) { in Serialize()
[all …]
/external/flatbuffers/src/
Dreflection.cpp356 void CopyInline(FlatBufferBuilder &fbb, const reflection::Field &fielddef, in CopyInline() argument
358 fbb.Align(align); in CopyInline()
359 fbb.PushBytes(table.GetStruct<const uint8_t *>(fielddef.offset()), size); in CopyInline()
360 fbb.TrackField(fielddef.offset(), fbb.GetSize()); in CopyInline()
363 Offset<const Table *> CopyTable(FlatBufferBuilder &fbb, in CopyTable() argument
380 ? fbb.CreateSharedString(GetFieldS(table, fielddef)).o in CopyTable()
381 : fbb.CreateString(GetFieldS(table, fielddef)).o; in CopyTable()
387 offset = CopyTable(fbb, schema, subobjectdef, in CopyTable()
394 offset = CopyTable(fbb, schema, subobjectdef, in CopyTable()
411 ? fbb.CreateSharedString(vec_s->Get(i)).o in CopyTable()
[all …]
/external/flatbuffers/docs/source/
DFlexBuffers.md42 flexbuffers::Builder fbb;
43 fbb.Int(13);
44 fbb.Finish();
52 as `fbb.GetBuffer()`. Write it, send it, or store it in a parent FlatBuffer. In
71 Here's a slightly more complex value you could write instead of `fbb.Int` above:
74 fbb.Map([&]() {
75 fbb.Vector("vec", [&]() {
76 fbb.Int(-100);
77 fbb.String("Fred");
78 fbb.IndirectFloat(4.0f);
[all …]
DCppUsage.md113 FlatBufferBuilder fbb;
114 Pack(fbb, &monsterobj);
457 After each JSON file, the `Parser::fbb` member variable is the
DTutorial.md828 Monster.startPathVector(fbb, 2);
831 int path = fbb.endVector();
836 Monster.StartPathVector(fbb, 2);
839 var path = fbb.EndVector();
/external/flatbuffers/include/flatbuffers/
Dflatbuffers.h1580 template<typename T> T *GetMutableTemporaryPointer(FlatBufferBuilder &fbb,
1582 return reinterpret_cast<T *>(fbb.GetCurrentBufferPointer() +
1583 fbb.GetSize() - offset.o);
1586 template<typename T> const T *GetTemporaryPointer(FlatBufferBuilder &fbb,
1588 return GetMutableTemporaryPointer<T>(fbb, offset);
Dreflection_generated.h897 flatbuffers::FlatBufferBuilder &fbb, in FinishSchemaBuffer() argument
899 fbb.Finish(root, SchemaIdentifier()); in FinishSchemaBuffer()
Dreflection.h472 Offset<const Table *> CopyTable(FlatBufferBuilder &fbb,
/external/flatbuffers/tests/union_vector/
Dunion_vector_generated.h721 flatbuffers::FlatBufferBuilder &fbb, in FinishMovieBuffer() argument
723 fbb.Finish(root, MovieIdentifier()); in FinishMovieBuffer()
/external/flatbuffers/samples/
Dmonster_generated.h733 flatbuffers::FlatBufferBuilder &fbb,
735 fbb.Finish(root);
/external/tcpdump/tests/
Dkday6.out43 0x0000: 0fbb 1627 4ce2 d5f3 5cca 8010 0410 0594
63 0x0030: ccff ffff 7fbb da80 d5f3 5c05 1614 4a2d
/external/icu/icu4c/
Dicu4c.css332 background-color: #fbb;
/external/python/cpython3/Doc/reference/
Dsimple_stmts.rst762 import foo.bar.baz as fbb # foo.bar.baz imported and bound as fbb
/external/trappy/doc/
DBarPlotter.ipynb55 …\npV3+cWwAkJNHzQHYb9SOO+79H/mV8Ot3/1O43/flL3856uvro1evXjFixIiYMmVKfP3rX+98/fbb\nb48bb7wxrr322vjTP/…

123