mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 04:04:19 +00:00
Also fixed that the parsing test wasn't calling the buffer testing function. Change-Id: I5baae071bf0832c7797b4ef1d19d9b015e3ff5bc Tested: on Linux.
68 lines
900 B
Plaintext
68 lines
900 B
Plaintext
{
|
|
pos: {
|
|
x: 1,
|
|
y: 2,
|
|
z: 3,
|
|
test1: 3,
|
|
test2: Green,
|
|
test3: {
|
|
a: 10,
|
|
b: 20
|
|
}
|
|
},
|
|
hp: 80,
|
|
name: "MyMonster",
|
|
inventory: [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
test_type: Monster,
|
|
test: {
|
|
name: "Fred"
|
|
},
|
|
test4: [
|
|
{
|
|
a: 10,
|
|
b: 20
|
|
},
|
|
{
|
|
a: 30,
|
|
b: 40
|
|
}
|
|
],
|
|
testarrayofstring: [
|
|
"bob",
|
|
"fred",
|
|
"bob",
|
|
"fred"
|
|
],
|
|
testarrayoftables: [
|
|
{
|
|
hp: 1000,
|
|
name: "Barney"
|
|
},
|
|
{
|
|
name: "Fred"
|
|
},
|
|
{
|
|
name: "Wilma"
|
|
}
|
|
],
|
|
testhashs32_fnv1: -579221183,
|
|
testhashu32_fnv1: 3715746113,
|
|
testhashs64_fnv1: 7930699090847568257,
|
|
testhashu64_fnv1: 7930699090847568257,
|
|
testhashs32_fnv1a: -1904106383,
|
|
testhashu32_fnv1a: 2390860913,
|
|
testhashs64_fnv1a: 4898026182817603057,
|
|
testhashu64_fnv1a: 4898026182817603057
|
|
}
|