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
da88be05
Commit
da88be05
authored
Jul 25, 2019
by
Jason Monschke
Committed by
Wouter van Oortmerssen
Jul 25, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change deprecated vector Length() to size() in tutorial (#5450)
parent
d4fa984f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Tutorial.md
docs/source/Tutorial.md
+2
-2
No files found.
docs/source/Tutorial.md
View file @
da88be05
...
...
@@ -2555,7 +2555,7 @@ FlatBuffers `vector`.
<div class="language-cpp">
~~~{.cpp}
auto inv = monster->inventory(); // A pointer to a `
flatbuffers::Vector
<>
`.
auto inv_len = inv->
Length
();
auto inv_len = inv->
size
();
auto third_item = inv->Get(2);
~~~
</div>
...
...
@@ -2650,7 +2650,7 @@ except your need to handle the result as a FlatBuffer `table`:
<div class="language-cpp">
~~~{.cpp}
auto weapons = monster->weapons(); // A pointer to a `
flatbuffers::Vector
<>
`.
auto weapon_len = weapons->
Length
();
auto weapon_len = weapons->
size
();
auto second_weapon_name = weapons->Get(1)->name()->str();
auto second_weapon_damage = weapons->Get(1)->damage()
~~~
...
...
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