Commit 3f96eead authored by gwvo's avatar gwvo

Merge pull request #192 from Jiboo/fix190

Added a default constructor for Java's FlatBufferBuilder.
parents 8896587f 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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment