我使用 flatbuffer 将数据编码为名为“person.txt”的文件,如何将其转换为 json 文件?
我尝试 'flatc --json person.txt person.json' 但它失败了。
我有“person.fbs,person.txt”,怎么做?
您还需要在正在执行的命令中提供架构路径。
flatc.exe --raw-binary -t <path to fbs schema file> -- <path to flatbuffer binary file>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2667 次 |
| 最近记录: |