mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-20 05:15:07 +00:00
Added accessor for file_extension in generated code.
Change-Id: I2de7d14dbb1f7b8f81022dd2c9da65060ae49300 Tested: on Linux.
This commit is contained in:
@@ -332,6 +332,8 @@ inline const char *MonsterIdentifier() { return "MONS"; }
|
||||
|
||||
inline bool MonsterBufferHasIdentifier(const void *buf) { return flatbuffers::BufferHasIdentifier(buf, MonsterIdentifier()); }
|
||||
|
||||
inline const char *MonsterExtension() { return "mon"; }
|
||||
|
||||
inline void FinishMonsterBuffer(flatbuffers::FlatBufferBuilder &fbb, flatbuffers::Offset<Monster> root) { fbb.Finish(root, MonsterIdentifier()); }
|
||||
|
||||
} // namespace Example
|
||||
|
||||
Reference in New Issue
Block a user