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
147fbb42
Commit
147fbb42
authored
Jul 13, 2015
by
Maor Itzkovitch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builder.put statements now use correct argument names
parent
a9ae9bdc
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
idl_gen_general.cpp
src/idl_gen_general.cpp
+1
-1
Vec3.cs
tests/MyGame/Example/Vec3.cs
+3
-3
Vec3.java
tests/MyGame/Example/Vec3.java
+3
-3
No files found.
src/idl_gen_general.cpp
View file @
147fbb42
...
...
@@ -481,7 +481,7 @@ static void GenStructBody(const LanguageParameters &lang,
}
if
(
IsStruct
(
field
.
value
.
type
))
{
GenStructBody
(
lang
,
*
field
.
value
.
type
.
struct_def
,
code_ptr
,
(
field
.
value
.
type
.
struct_def
->
name
+
"_"
).
c_str
());
(
nameprefix
+
(
field
.
name
+
"_"
)
).
c_str
());
}
else
{
code
+=
" builder."
+
FunctionStart
(
lang
,
'P'
)
+
"ut"
;
code
+=
GenMethod
(
lang
,
field
.
value
.
type
)
+
"("
;
...
...
tests/MyGame/Example/Vec3.cs
View file @
147fbb42
...
...
@@ -16,13 +16,13 @@ public sealed class Vec3 : Struct {
public
Test
Test3
{
get
{
return
GetTest3
(
new
Test
());
}
}
public
Test
GetTest3
(
Test
obj
)
{
return
obj
.
__init
(
bb_pos
+
26
,
bb
);
}
public
static
int
CreateVec3
(
FlatBufferBuilder
builder
,
float
X
,
float
Y
,
float
Z
,
double
Test1
,
Color
Test2
,
short
Test_A
,
sbyte
Test
_B
)
{
public
static
int
CreateVec3
(
FlatBufferBuilder
builder
,
float
X
,
float
Y
,
float
Z
,
double
Test1
,
Color
Test2
,
short
test3_A
,
sbyte
test3
_B
)
{
builder
.
Prep
(
16
,
32
);
builder
.
Pad
(
2
);
builder
.
Prep
(
2
,
4
);
builder
.
Pad
(
1
);
builder
.
PutSbyte
(
Test
_B
);
builder
.
PutShort
(
Test
_A
);
builder
.
PutSbyte
(
test3
_B
);
builder
.
PutShort
(
test3
_A
);
builder
.
Pad
(
1
);
builder
.
PutSbyte
((
sbyte
)(
Test2
));
builder
.
PutDouble
(
Test1
);
...
...
tests/MyGame/Example/Vec3.java
View file @
147fbb42
...
...
@@ -18,13 +18,13 @@ public final class Vec3 extends Struct {
public
Test
test3
()
{
return
test3
(
new
Test
());
}
public
Test
test3
(
Test
obj
)
{
return
obj
.
__init
(
bb_pos
+
26
,
bb
);
}
public
static
int
createVec3
(
FlatBufferBuilder
builder
,
float
x
,
float
y
,
float
z
,
double
test1
,
byte
test2
,
short
Test_a
,
byte
Test
_b
)
{
public
static
int
createVec3
(
FlatBufferBuilder
builder
,
float
x
,
float
y
,
float
z
,
double
test1
,
byte
test2
,
short
test3_a
,
byte
test3
_b
)
{
builder
.
prep
(
16
,
32
);
builder
.
pad
(
2
);
builder
.
prep
(
2
,
4
);
builder
.
pad
(
1
);
builder
.
putByte
(
Test
_b
);
builder
.
putShort
(
Test
_a
);
builder
.
putByte
(
test3
_b
);
builder
.
putShort
(
test3
_a
);
builder
.
pad
(
1
);
builder
.
putByte
(
test2
);
builder
.
putDouble
(
test1
);
...
...
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