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
a0a313b1
Commit
a0a313b1
authored
May 10, 2017
by
Wouter van Oortmerssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added missing js/ts generated code.
Change-Id: I146e9e1b8f997c11d1675dbef1b958ddbd181092
parent
93c0960c
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
20 deletions
+20
-20
monster_test_generated.js
tests/monster_test_generated.js
+4
-4
monster_test_generated.ts
tests/monster_test_generated.ts
+0
-0
namespace_test1_generated.ts
tests/namespace_test/namespace_test1_generated.ts
+1
-1
namespace_test2_generated.js
tests/namespace_test/namespace_test2_generated.js
+5
-5
namespace_test2_generated.ts
tests/namespace_test/namespace_test2_generated.ts
+10
-10
No files found.
tests/monster_test_generated.js
View file @
a0a313b1
...
...
@@ -398,7 +398,7 @@ MyGame.Example.Vec3.prototype.mutate_test2 = function(value) {
/**
* @param {MyGame.Example.Test=} obj
* @returns {MyGame.Example.Test}
* @returns {MyGame.Example.Test
|null
}
*/
MyGame
.
Example
.
Vec3
.
prototype
.
test3
=
function
(
obj
)
{
return
(
obj
||
new
MyGame
.
Example
.
Test
).
__init
(
this
.
bb_pos
+
26
,
this
.
bb
);
...
...
@@ -692,7 +692,7 @@ MyGame.Example.Monster.bufferHasIdentifier = function(bb) {
/**
* @param {MyGame.Example.Vec3=} obj
* @returns {MyGame.Example.Vec3}
* @returns {MyGame.Example.Vec3
|null
}
*/
MyGame
.
Example
.
Monster
.
prototype
.
pos
=
function
(
obj
)
{
var
offset
=
this
.
bb
.
__offset
(
this
.
bb_pos
,
4
);
...
...
@@ -893,7 +893,7 @@ MyGame.Example.Monster.prototype.testarrayoftablesLength = function() {
/**
* @param {MyGame.Example.Monster=} obj
* @returns {MyGame.Example.Monster}
* @returns {MyGame.Example.Monster
|null
}
*/
MyGame
.
Example
.
Monster
.
prototype
.
enemy
=
function
(
obj
)
{
var
offset
=
this
.
bb
.
__offset
(
this
.
bb_pos
,
28
);
...
...
@@ -927,7 +927,7 @@ MyGame.Example.Monster.prototype.testnestedflatbufferArray = function() {
/**
* @param {MyGame.Example.Stat=} obj
* @returns {MyGame.Example.Stat}
* @returns {MyGame.Example.Stat
|null
}
*/
MyGame
.
Example
.
Monster
.
prototype
.
testempty
=
function
(
obj
)
{
var
offset
=
this
.
bb
.
__offset
(
this
.
bb_pos
,
32
);
...
...
tests/monster_test_generated.ts
View file @
a0a313b1
This diff is collapsed.
Click to expand it.
tests/namespace_test/namespace_test1_generated.ts
View file @
a0a313b1
...
...
@@ -168,7 +168,7 @@ mutate_b(value:number):boolean {
* @param {number} b
* @returns {flatbuffers.Offset}
*/
static
createStructInNestedNS
(
builder
:
flatbuffers
.
Builder
,
a
:
number
,
b
:
number
):
flatbuffers
.
Offset
{
static
createStructInNestedNS
(
builder
:
flatbuffers
.
Builder
,
a
:
number
,
b
:
number
):
flatbuffers
.
Offset
|
null
{
builder
.
prep
(
4
,
8
);
builder
.
writeInt32
(
b
);
builder
.
writeInt32
(
a
);
...
...
tests/namespace_test/namespace_test2_generated.js
View file @
a0a313b1
...
...
@@ -55,7 +55,7 @@ NamespaceA.TableInFirstNS.getRootAsTableInFirstNS = function(bb, obj) {
/**
* @param {NamespaceA.NamespaceB.TableInNestedNS=} obj
* @returns {NamespaceA.NamespaceB.TableInNestedNS}
* @returns {NamespaceA.NamespaceB.TableInNestedNS
|null
}
*/
NamespaceA
.
TableInFirstNS
.
prototype
.
fooTable
=
function
(
obj
)
{
var
offset
=
this
.
bb
.
__offset
(
this
.
bb_pos
,
4
);
...
...
@@ -87,7 +87,7 @@ NamespaceA.TableInFirstNS.prototype.mutate_foo_enum = function(value) {
/**
* @param {NamespaceA.NamespaceB.StructInNestedNS=} obj
* @returns {NamespaceA.NamespaceB.StructInNestedNS}
* @returns {NamespaceA.NamespaceB.StructInNestedNS
|null
}
*/
NamespaceA
.
TableInFirstNS
.
prototype
.
fooStruct
=
function
(
obj
)
{
var
offset
=
this
.
bb
.
__offset
(
this
.
bb_pos
,
8
);
...
...
@@ -171,7 +171,7 @@ NamespaceC.TableInC.getRootAsTableInC = function(bb, obj) {
/**
* @param {NamespaceA.TableInFirstNS=} obj
* @returns {NamespaceA.TableInFirstNS}
* @returns {NamespaceA.TableInFirstNS
|null
}
*/
NamespaceC
.
TableInC
.
prototype
.
referToA1
=
function
(
obj
)
{
var
offset
=
this
.
bb
.
__offset
(
this
.
bb_pos
,
4
);
...
...
@@ -180,7 +180,7 @@ NamespaceC.TableInC.prototype.referToA1 = function(obj) {
/**
* @param {NamespaceA.SecondTableInA=} obj
* @returns {NamespaceA.SecondTableInA}
* @returns {NamespaceA.SecondTableInA
|null
}
*/
NamespaceC
.
TableInC
.
prototype
.
referToA2
=
function
(
obj
)
{
var
offset
=
this
.
bb
.
__offset
(
this
.
bb_pos
,
6
);
...
...
@@ -256,7 +256,7 @@ NamespaceA.SecondTableInA.getRootAsSecondTableInA = function(bb, obj) {
/**
* @param {NamespaceC.TableInC=} obj
* @returns {NamespaceC.TableInC}
* @returns {NamespaceC.TableInC
|null
}
*/
NamespaceA
.
SecondTableInA
.
prototype
.
referToC
=
function
(
obj
)
{
var
offset
=
this
.
bb
.
__offset
(
this
.
bb_pos
,
4
);
...
...
tests/namespace_test/namespace_test2_generated.ts
View file @
a0a313b1
...
...
@@ -37,9 +37,9 @@ static getRootAsTableInFirstNS(bb:flatbuffers.ByteBuffer, obj?:TableInFirstNS):T
/**
* @param {NamespaceA.NamespaceB.TableInNestedNS=} obj
* @returns {NamespaceA.NamespaceB.TableInNestedNS}
* @returns {NamespaceA.NamespaceB.TableInNestedNS
|null
}
*/
fooTable
(
obj
?:
NS9459827973991502386
.
NamespaceA
.
NamespaceB
.
TableInNestedNS
):
NS9459827973991502386
.
NamespaceA
.
NamespaceB
.
TableInNestedNS
{
fooTable
(
obj
?:
NS9459827973991502386
.
NamespaceA
.
NamespaceB
.
TableInNestedNS
):
NS9459827973991502386
.
NamespaceA
.
NamespaceB
.
TableInNestedNS
|
null
{
var
offset
=
this
.
bb
.
__offset
(
this
.
bb_pos
,
4
);
return
offset
?
(
obj
||
new
NS9459827973991502386
.
NamespaceA
.
NamespaceB
.
TableInNestedNS
).
__init
(
this
.
bb
.
__indirect
(
this
.
bb_pos
+
offset
),
this
.
bb
)
:
null
;
};
...
...
@@ -69,9 +69,9 @@ mutate_foo_enum(value:NS9459827973991502386.NamespaceA.NamespaceB.EnumInNestedNS
/**
* @param {NamespaceA.NamespaceB.StructInNestedNS=} obj
* @returns {NamespaceA.NamespaceB.StructInNestedNS}
* @returns {NamespaceA.NamespaceB.StructInNestedNS
|null
}
*/
fooStruct
(
obj
?:
NS9459827973991502386
.
NamespaceA
.
NamespaceB
.
StructInNestedNS
):
NS9459827973991502386
.
NamespaceA
.
NamespaceB
.
StructInNestedNS
{
fooStruct
(
obj
?:
NS9459827973991502386
.
NamespaceA
.
NamespaceB
.
StructInNestedNS
):
NS9459827973991502386
.
NamespaceA
.
NamespaceB
.
StructInNestedNS
|
null
{
var
offset
=
this
.
bb
.
__offset
(
this
.
bb_pos
,
8
);
return
offset
?
(
obj
||
new
NS9459827973991502386
.
NamespaceA
.
NamespaceB
.
StructInNestedNS
).
__init
(
this
.
bb_pos
+
offset
,
this
.
bb
)
:
null
;
};
...
...
@@ -154,18 +154,18 @@ static getRootAsTableInC(bb:flatbuffers.ByteBuffer, obj?:TableInC):TableInC {
/**
* @param {NamespaceA.TableInFirstNS=} obj
* @returns {NamespaceA.TableInFirstNS}
* @returns {NamespaceA.TableInFirstNS
|null
}
*/
referToA1
(
obj
?:
NamespaceA
.
TableInFirstNS
):
NamespaceA
.
TableInFirstNS
{
referToA1
(
obj
?:
NamespaceA
.
TableInFirstNS
):
NamespaceA
.
TableInFirstNS
|
null
{
var
offset
=
this
.
bb
.
__offset
(
this
.
bb_pos
,
4
);
return
offset
?
(
obj
||
new
NamespaceA
.
TableInFirstNS
).
__init
(
this
.
bb
.
__indirect
(
this
.
bb_pos
+
offset
),
this
.
bb
)
:
null
;
};
/**
* @param {NamespaceA.SecondTableInA=} obj
* @returns {NamespaceA.SecondTableInA}
* @returns {NamespaceA.SecondTableInA
|null
}
*/
referToA2
(
obj
?:
NamespaceA
.
SecondTableInA
):
NamespaceA
.
SecondTableInA
{
referToA2
(
obj
?:
NamespaceA
.
SecondTableInA
):
NamespaceA
.
SecondTableInA
|
null
{
var
offset
=
this
.
bb
.
__offset
(
this
.
bb_pos
,
6
);
return
offset
?
(
obj
||
new
NamespaceA
.
SecondTableInA
).
__init
(
this
.
bb
.
__indirect
(
this
.
bb_pos
+
offset
),
this
.
bb
)
:
null
;
};
...
...
@@ -240,9 +240,9 @@ static getRootAsSecondTableInA(bb:flatbuffers.ByteBuffer, obj?:SecondTableInA):S
/**
* @param {NamespaceC.TableInC=} obj
* @returns {NamespaceC.TableInC}
* @returns {NamespaceC.TableInC
|null
}
*/
referToC
(
obj
?:
NamespaceC
.
TableInC
):
NamespaceC
.
TableInC
{
referToC
(
obj
?:
NamespaceC
.
TableInC
):
NamespaceC
.
TableInC
|
null
{
var
offset
=
this
.
bb
.
__offset
(
this
.
bb_pos
,
4
);
return
offset
?
(
obj
||
new
NamespaceC
.
TableInC
).
__init
(
this
.
bb
.
__indirect
(
this
.
bb_pos
+
offset
),
this
.
bb
)
:
null
;
};
...
...
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