generate size-prefixed monster binary as well

This commit is contained in:
Robert Schmidtke 2017-10-02 17:33:40 +02:00
parent 081a8a1c24
commit 2939516fdf
3 changed files with 11 additions and 0 deletions

View File

@ -15,6 +15,7 @@
# limitations under the License.
../flatc --cpp --java --csharp --go --binary --python --js --ts --php --grpc --gen-mutable --reflect-names --gen-object-api --no-includes --cpp-ptr-type flatbuffers::unique_ptr --no-fb-import -I include_test monster_test.fbs monsterdata_test.json
../flatc -b --prefix-size -I include_test monster_test_ps.fbs monsterdata_test.json
../flatc --cpp --java --csharp --go --binary --python --js --ts --php --gen-mutable --reflect-names --no-fb-import --cpp-ptr-type flatbuffers::unique_ptr -o namespace_test namespace_test/namespace_test1.fbs namespace_test/namespace_test2.fbs
../flatc --cpp --js --ts --php --gen-mutable --reflect-names --gen-object-api --cpp-ptr-type flatbuffers::unique_ptr -o union_vector ./union_vector/union_vector.fbs
../flatc -b --schema --bfbs-comments -I include_test monster_test.fbs

10
tests/monster_test_ps.fbs Executable file
View File

@ -0,0 +1,10 @@
// similar schema, except to be parsed with --prefix-size
include "monster_test.fbs";
namespace MyGame.Example;
root_type Monster;
file_identifier "MONS";
file_extension "mops";

BIN
tests/monsterdata_test.mops Normal file

Binary file not shown.