mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 04:04:19 +00:00
* Change Rust generated file defaults After #6731, flatc changed its default behavior for generating rust code to fix some importing issues. This was a breaking change which invlidated the patch release, `flatc 2.0.5` (#7081). This PR reverses the default so we can release a patch update. However, does break Rust users who work at HEAD. * Bump flatc patch version (2.0.6) Co-authored-by: Casper Neo <cneo@google.com>
36 lines
702 B
Lua
36 lines
702 B
Lua
--[[ MyGame.InParentNamespace
|
|
|
|
Automatically generated by the FlatBuffers compiler, do not modify.
|
|
Or modify. I'm a message, not a cop.
|
|
|
|
flatc version: 2.0.6
|
|
|
|
Declared by : //monster_test.fbs
|
|
Rooting type : MyGame.Example.Monster (//monster_test.fbs)
|
|
|
|
--]]
|
|
|
|
local flatbuffers = require('flatbuffers')
|
|
|
|
local InParentNamespace = {}
|
|
local mt = {}
|
|
|
|
function InParentNamespace.New()
|
|
local o = {}
|
|
setmetatable(o, {__index = mt})
|
|
return o
|
|
end
|
|
|
|
function mt:Init(buf, pos)
|
|
self.view = flatbuffers.view.New(buf, pos)
|
|
end
|
|
|
|
function InParentNamespace.Start(builder)
|
|
builder:StartObject(0)
|
|
end
|
|
|
|
function InParentNamespace.End(builder)
|
|
return builder:EndObject()
|
|
end
|
|
|
|
return InParentNamespace |