mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 20:15:34 +00:00
Change-Id: I4c9f0f722490b374257adb3fec63e44ae93da920 Tested: using VS2010 / Xcode / gcc on Linux.
694 B
Executable File
694 B
Executable File
Using the schema compiler
Usage:
flatc [ -c ] [ -j ] [ -b ] [ -t ] file1 file2 ..
The files are read and parsed in order, and can contain either schemas or data (see below). Later files can make use of definitions in earlier files. Depending on the flags passed, additional files may be generated for each file processed:
-
-c: Generate a C++ header for all definitions in this file (asfilename_generated.h). Skips data. -
-j: Generate Java classes. -
-b: If data is contained in this file, generate afilename_wire.bincontaining the binary flatbuffer. -
-t: If data is contained in this file, generate afilename_wire.txt(for debugging).