1 parent 634fdd8 commit 23b0fd8Copy full SHA for 23b0fd8
1 file changed
msgpack-core/src/main/java/org/msgpack/core/MessageUnpacker.java
@@ -98,9 +98,10 @@ public class MessageUnpacker
98
private long totalReadBytes;
99
100
/**
101
- * Extra buffer for fixed-length data at the buffer boundary. At most 17-byte buffer (for FIXEXT16) is required.
+ * Extra buffer for fixed-length data at the buffer boundary.
102
+ * At most 8-byte buffer (for readLong used by uint 64 and UTF-8 character decoding) is required.
103
*/
- private final MessageBuffer castBuffer = MessageBuffer.newBuffer(24);
104
+ private final MessageBuffer castBuffer = MessageBuffer.newBuffer(8);
105
106
107
* Variable by ensureHeader method. Caller of the method should use this variable to read from returned MessageBuffer.
0 commit comments