Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
flatbuffers
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
flatbuffers
Commits
370e101a
Commit
370e101a
authored
Jul 21, 2016
by
Wouter van Oortmerssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added missing Go generated files.
Change-Id: I9d738e84ab2e01ec117c825ade44cc865cf5f1c2
parent
91f5cf35
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
+12
-0
StructInNestedNS.go
.../namespace_test/NamespaceA/NamespaceB/StructInNestedNS.go
+4
-0
TableInNestedNS.go
...s/namespace_test/NamespaceA/NamespaceB/TableInNestedNS.go
+4
-0
TableInFirstNS.go
tests/namespace_test/NamespaceA/TableInFirstNS.go
+4
-0
No files found.
tests/namespace_test/NamespaceA/NamespaceB/StructInNestedNS.go
View file @
370e101a
...
@@ -15,7 +15,11 @@ func (rcv *StructInNestedNS) Init(buf []byte, i flatbuffers.UOffsetT) {
...
@@ -15,7 +15,11 @@ func (rcv *StructInNestedNS) Init(buf []byte, i flatbuffers.UOffsetT) {
}
}
func
(
rcv
*
StructInNestedNS
)
A
()
int32
{
return
rcv
.
_tab
.
GetInt32
(
rcv
.
_tab
.
Pos
+
flatbuffers
.
UOffsetT
(
0
))
}
func
(
rcv
*
StructInNestedNS
)
A
()
int32
{
return
rcv
.
_tab
.
GetInt32
(
rcv
.
_tab
.
Pos
+
flatbuffers
.
UOffsetT
(
0
))
}
func
(
rcv
*
StructInNestedNS
)
MutateA
(
n
int32
)
bool
{
return
rcv
.
_tab
.
MutateInt32
(
rcv
.
_tab
.
Pos
+
flatbuffers
.
UOffsetT
(
0
),
n
)
}
func
(
rcv
*
StructInNestedNS
)
B
()
int32
{
return
rcv
.
_tab
.
GetInt32
(
rcv
.
_tab
.
Pos
+
flatbuffers
.
UOffsetT
(
4
))
}
func
(
rcv
*
StructInNestedNS
)
B
()
int32
{
return
rcv
.
_tab
.
GetInt32
(
rcv
.
_tab
.
Pos
+
flatbuffers
.
UOffsetT
(
4
))
}
func
(
rcv
*
StructInNestedNS
)
MutateB
(
n
int32
)
bool
{
return
rcv
.
_tab
.
MutateInt32
(
rcv
.
_tab
.
Pos
+
flatbuffers
.
UOffsetT
(
4
),
n
)
}
func
CreateStructInNestedNS
(
builder
*
flatbuffers
.
Builder
,
a
int32
,
b
int32
)
flatbuffers
.
UOffsetT
{
func
CreateStructInNestedNS
(
builder
*
flatbuffers
.
Builder
,
a
int32
,
b
int32
)
flatbuffers
.
UOffsetT
{
builder
.
Prep
(
4
,
8
)
builder
.
Prep
(
4
,
8
)
...
...
tests/namespace_test/NamespaceA/NamespaceB/TableInNestedNS.go
View file @
370e101a
...
@@ -22,6 +22,10 @@ func (rcv *TableInNestedNS) Foo() int32 {
...
@@ -22,6 +22,10 @@ func (rcv *TableInNestedNS) Foo() int32 {
return
0
return
0
}
}
func
(
rcv
*
TableInNestedNS
)
MutateFoo
(
n
int32
)
bool
{
return
rcv
.
_tab
.
MutateInt32Slot
(
4
,
n
)
}
func
TableInNestedNSStart
(
builder
*
flatbuffers
.
Builder
)
{
builder
.
StartObject
(
1
)
}
func
TableInNestedNSStart
(
builder
*
flatbuffers
.
Builder
)
{
builder
.
StartObject
(
1
)
}
func
TableInNestedNSAddFoo
(
builder
*
flatbuffers
.
Builder
,
foo
int32
)
{
builder
.
PrependInt32Slot
(
0
,
foo
,
0
)
}
func
TableInNestedNSAddFoo
(
builder
*
flatbuffers
.
Builder
,
foo
int32
)
{
builder
.
PrependInt32Slot
(
0
,
foo
,
0
)
}
func
TableInNestedNSEnd
(
builder
*
flatbuffers
.
Builder
)
flatbuffers
.
UOffsetT
{
return
builder
.
EndObject
()
}
func
TableInNestedNSEnd
(
builder
*
flatbuffers
.
Builder
)
flatbuffers
.
UOffsetT
{
return
builder
.
EndObject
()
}
tests/namespace_test/NamespaceA/TableInFirstNS.go
View file @
370e101a
...
@@ -35,6 +35,10 @@ func (rcv *TableInFirstNS) FooEnum() int8 {
...
@@ -35,6 +35,10 @@ func (rcv *TableInFirstNS) FooEnum() int8 {
return
0
return
0
}
}
func
(
rcv
*
TableInFirstNS
)
MutateFooEnum
(
n
int8
)
bool
{
return
rcv
.
_tab
.
MutateInt8Slot
(
6
,
n
)
}
func
(
rcv
*
TableInFirstNS
)
FooStruct
(
obj
*
StructInNestedNS
)
*
StructInNestedNS
{
func
(
rcv
*
TableInFirstNS
)
FooStruct
(
obj
*
StructInNestedNS
)
*
StructInNestedNS
{
o
:=
flatbuffers
.
UOffsetT
(
rcv
.
_tab
.
Offset
(
8
))
o
:=
flatbuffers
.
UOffsetT
(
rcv
.
_tab
.
Offset
(
8
))
if
o
!=
0
{
if
o
!=
0
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment