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
ff3781dc
Commit
ff3781dc
authored
Nov 18, 2019
by
FujiZ
Committed by
Wouter van Oortmerssen
Nov 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add namespace prefix in FLATBUFFERS_MAX_BUFFER_SIZE (#5629)
parent
6beb9f49
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
base.h
include/flatbuffers/base.h
+1
-1
No files found.
include/flatbuffers/base.h
View file @
ff3781dc
...
@@ -296,7 +296,7 @@ typedef uint16_t voffset_t;
...
@@ -296,7 +296,7 @@ typedef uint16_t voffset_t;
typedef
uintmax_t
largest_scalar_t
;
typedef
uintmax_t
largest_scalar_t
;
// In 32bits, this evaluates to 2GB - 1
// In 32bits, this evaluates to 2GB - 1
#define FLATBUFFERS_MAX_BUFFER_SIZE ((1ULL << (sizeof(soffset_t) * 8 - 1)) - 1)
#define FLATBUFFERS_MAX_BUFFER_SIZE ((1ULL << (sizeof(
::flatbuffers::
soffset_t) * 8 - 1)) - 1)
// We support aligning the contents of buffers up to this size.
// We support aligning the contents of buffers up to this size.
#define FLATBUFFERS_MAX_ALIGNMENT 16
#define FLATBUFFERS_MAX_ALIGNMENT 16
...
...
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