Fix buffer size to ensure by xerial · Pull Request #216 · msgpack/msgpack-java
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ensure(int byteSizeToRead) looks to guarantee to prepare a buffer requested as byteSizeToRead. So readLen should be simply strLen - cursor? If so, maybe we can remove the outer loop.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like so. i'll remove it
@komamitsu
Fixed to utilize existing buffer rather than ensuring the buffer size for the whole string size.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters