mirror of
https://github.com/vee1e/flatbuffers.git
synced 2026-09-01 17:57:25 +00:00
Merge pull request #192 from Jiboo/fix190
Added a default constructor for Java's FlatBufferBuilder.
This commit is contained in:
commit
3f96eead4c
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue