Added a default costructor for Java's FlatBufferBuilder.

Default's size of 1024b like in cpp. Fixes #190.
parent 39833d7c
......@@ -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