summaryrefslogtreecommitdiff
path: root/tests/namespace_test/NamespaceA/SecondTableInA.go
diff options
context:
space:
mode:
authorWouter van Oortmerssen <wvo@google.com>2016-08-08 12:18:07 -0700
committerWouter van Oortmerssen <wvo@google.com>2016-08-08 12:18:07 -0700
commitc96fc7fcef4b415f561d5e1b6434cb708cbeb592 (patch)
tree2db68f7d127e93ff1ae28ad277ba18265f3d9b65 /tests/namespace_test/NamespaceA/SecondTableInA.go
parent026c6ddb174b25d8793da6e445f612679bcdc5a3 (diff)
downloadflatbuffers-c96fc7fcef4b415f561d5e1b6434cb708cbeb592.tar.gz
flatbuffers-c96fc7fcef4b415f561d5e1b6434cb708cbeb592.tar.bz2
flatbuffers-c96fc7fcef4b415f561d5e1b6434cb708cbeb592.zip
Added missing generated code from previous commits.
Change-Id: Ie2f1f65be451979d9f8d4da999b1c10737e867af
Diffstat (limited to 'tests/namespace_test/NamespaceA/SecondTableInA.go')
-rw-r--r--tests/namespace_test/NamespaceA/SecondTableInA.go15
1 files changed, 11 insertions, 4 deletions
diff --git a/tests/namespace_test/NamespaceA/SecondTableInA.go b/tests/namespace_test/NamespaceA/SecondTableInA.go
index 40454419..f53a1ead 100644
--- a/tests/namespace_test/NamespaceA/SecondTableInA.go
+++ b/tests/namespace_test/NamespaceA/SecondTableInA.go
@@ -5,6 +5,7 @@ package NamespaceA
import (
flatbuffers "github.com/google/flatbuffers/go"
)
+
type SecondTableInA struct {
_tab flatbuffers.Table
}
@@ -12,7 +13,7 @@ type SecondTableInA struct {
func GetRootAsSecondTableInA(buf []byte, offset flatbuffers.UOffsetT) *SecondTableInA {
n := flatbuffers.GetUOffsetT(buf[offset:])
x := &SecondTableInA{}
- x.Init(buf, n + offset)
+ x.Init(buf, n+offset)
return x
}
@@ -34,6 +35,12 @@ func (rcv *SecondTableInA) ReferToC(obj *TableInC) *TableInC {
return nil
}
-func SecondTableInAStart(builder *flatbuffers.Builder) { builder.StartObject(1) }
-func SecondTableInAAddReferToC(builder *flatbuffers.Builder, referToC flatbuffers.UOffsetT) { builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(referToC), 0) }
-func SecondTableInAEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { return builder.EndObject() }
+func SecondTableInAStart(builder *flatbuffers.Builder) {
+ builder.StartObject(1)
+}
+func SecondTableInAAddReferToC(builder *flatbuffers.Builder, referToC flatbuffers.UOffsetT) {
+ builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(referToC), 0)
+}
+func SecondTableInAEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT {
+ return builder.EndObject()
+}