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
27ce0986
Commit
27ce0986
authored
May 31, 2018
by
Wouter van Oortmerssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed typo in Java/C# tutorial.
Change-Id: I956b27f37b11988e67d0403a596c0569eacbfc2a
parent
3a2f6d53
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
Tutorial.md
docs/source/Tutorial.md
+6
-6
No files found.
docs/source/Tutorial.md
View file @
27ce0986
...
...
@@ -662,7 +662,7 @@ our `orc` Monster, lets create some `Weapon`s: a `Sword` and an `Axe`.
</div>
<div
class=
"language-dart"
>
~~~
{.dart}
// The generated Builder classes work much like in other languages,
// The generated Builder classes work much like in other languages,
final int weaponOneName = builder.writeString("Sword");
final int weaponOneDamage = 3;
...
...
@@ -841,7 +841,7 @@ traversal. This is generally easy to do on any tree structures.
// could correspond to an item that can be claimed after he is slain.
final List<int> treasure = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
final inventory = builder.writeListUint8(treasure);
// The following code should be used instead if you intend to use the
// ObjectBuilder classes:
// Serialize a name for our monster, called "Orc".
...
...
@@ -1071,7 +1071,7 @@ can serialize the monster itself:
~~~
{.cpp}
// Create the position struct
auto position = Vec3(1.0f, 2.0f, 3.0f);
// Set his hit points to 300 and his mana to 150.
int hp = 300;
int mana = 150;
...
...
@@ -1246,7 +1246,7 @@ can serialize the monster itself:
// all of them.
// Also note that it is not necessary to `finish` the builder helpers above
// - the generated code will automatically reuse offsets if the same object
// is used in more than one place (e.g. the axe appearing in `weapons` and
// is used in more than one place (e.g. the axe appearing in `weapons` and
// `equipped`).
final myGame.MonsterBuilder orcBuilder = new myGame.MonsterBuilder(
name: name,
...
...
@@ -1501,7 +1501,7 @@ like so:
// The number of bytes is buf.remaining().
// Alternatively this copies the above data out of the ByteBuffer for you:
byte
s
[] buf = builder.sizedByteArray();
byte[] buf = builder.sizedByteArray();
~~~
</div>
<div class="language-csharp">
...
...
@@ -1513,7 +1513,7 @@ like so:
// buf.Length - buf.Position.
// Alternatively this copies the above data out of the ByteBuffer for you:
byte
s
[] buf = builder.SizedByteArray();
byte[] buf = builder.SizedByteArray();
~~~
</div>
<div class="language-go">
...
...
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