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
b56020ad
Commit
b56020ad
authored
Jul 22, 2015
by
Jon Simantov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated pointer syntax to be consistent in SetString, etc.
parent
6e160f4c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
reflection.h
include/flatbuffers/reflection.h
+2
-2
No files found.
include/flatbuffers/reflection.h
View file @
b56020ad
...
...
@@ -277,7 +277,7 @@ class ResizeContext {
public
:
ResizeContext
(
const
reflection
::
Schema
&
schema
,
uoffset_t
start
,
int
delta
,
std
::
vector
<
uint8_t
>
*
flatbuf
,
const
reflection
::
Object
*
root_table
=
nullptr
)
const
reflection
::
Object
*
root_table
=
nullptr
)
:
schema_
(
schema
),
startptr_
(
flatbuf
->
data
()
+
start
),
delta_
(
delta
),
buf_
(
*
flatbuf
),
dag_check_
(
flatbuf
->
size
()
/
sizeof
(
uoffset_t
),
false
)
{
...
...
@@ -402,7 +402,7 @@ class ResizeContext {
// pass in your root_table type as well.
inline
void
SetString
(
const
reflection
::
Schema
&
schema
,
const
std
::
string
&
val
,
const
String
*
str
,
std
::
vector
<
uint8_t
>
*
flatbuf
,
const
reflection
::
Object
*
root_table
=
nullptr
)
{
const
reflection
::
Object
*
root_table
=
nullptr
)
{
auto
delta
=
static_cast
<
int
>
(
val
.
size
())
-
static_cast
<
int
>
(
str
->
Length
());
auto
start
=
static_cast
<
uoffset_t
>
(
reinterpret_cast
<
const
uint8_t
*>
(
str
)
-
flatbuf
->
data
()
+
...
...
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