mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-27 09:02:17 +00:00
Merge branch 'master' of https://github.com/google/flatbuffers
This commit is contained in:
@@ -103,7 +103,7 @@ To use:
|
|||||||
cout << monsterobj->name; // This is now a std::string!
|
cout << monsterobj->name; // This is now a std::string!
|
||||||
monsterobj->name = "Bob"; // Change the name.
|
monsterobj->name = "Bob"; // Change the name.
|
||||||
FlatBufferBuilder fbb;
|
FlatBufferBuilder fbb;
|
||||||
monsterobj->Pack(fbb); // Serialize into new buffer.
|
CreateMonster(fbb, monsterobj->get()); // Serialize into new buffer.
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
## Reflection (& Resizing)
|
## Reflection (& Resizing)
|
||||||
|
|||||||
Reference in New Issue
Block a user