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
9fa3e2f3
Commit
9fa3e2f3
authored
May 11, 2015
by
Jean-Baptiste "Jiboo" Lepesme
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a default costructor for Java's FlatBufferBuilder.
Default's size of 1024b like in cpp. Fixes #190.
parent
39833d7c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
FlatBufferBuilder.java
java/com/google/flatbuffers/FlatBufferBuilder.java
+7
-0
No files found.
java/com/google/flatbuffers/FlatBufferBuilder.java
View file @
9fa3e2f3
...
...
@@ -52,6 +52,13 @@ public class FlatBufferBuilder {
bb
=
newByteBuffer
(
initial_size
);
}
/**
* Start with a buffer of 1KiB, then grow as required.
*/
public
FlatBufferBuilder
()
{
this
(
1024
);
}
/**
* Alternative constructor allowing reuse of {@link ByteBuffer}s. The builder
* can still grow the buffer as necessary. User classes should make sure
...
...
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