Skip to content

Commit c32ad88

Browse files
authored
Specify the bufferSize of the ArrayBufferOutput (#597)
Use the bufferSize of PackerConfig to specify the bufferSize of the ArrayBufferOutput in MessageBufferPacker.
1 parent f842824 commit c32ad88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

msgpack-core/src/main/java/org/msgpack/core/MessageBufferPacker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class MessageBufferPacker
3434
{
3535
protected MessageBufferPacker(MessagePack.PackerConfig config)
3636
{
37-
this(new ArrayBufferOutput(), config);
37+
this(new ArrayBufferOutput(config.getBufferSize()), config);
3838
}
3939

4040
protected MessageBufferPacker(ArrayBufferOutput out, MessagePack.PackerConfig config)

0 commit comments

Comments
 (0)