summaryrefslogtreecommitdiff
path: root/tests/MyGame/InParentNamespace.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/MyGame/InParentNamespace.go')
-rw-r--r--tests/MyGame/InParentNamespace.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/MyGame/InParentNamespace.go b/tests/MyGame/InParentNamespace.go
index 9c5adf72..2c4a4e0e 100644
--- a/tests/MyGame/InParentNamespace.go
+++ b/tests/MyGame/InParentNamespace.go
@@ -36,6 +36,13 @@ func GetRootAsInParentNamespace(buf []byte, offset flatbuffers.UOffsetT) *InPare
return x
}
+func GetSizePrefixedRootAsInParentNamespace(buf []byte, offset flatbuffers.UOffsetT) *InParentNamespace {
+ n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:])
+ x := &InParentNamespace{}
+ x.Init(buf, n+offset+flatbuffers.SizeUint32)
+ return x
+}
+
func (rcv *InParentNamespace) Init(buf []byte, i flatbuffers.UOffsetT) {
rcv._tab.Bytes = buf
rcv._tab.Pos = i