FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix buffer size to ensure by xerial · Pull Request #216 · msgpack/msgpack-java · GitHub

Fix buffer size to ensure - #216

Merged
komamitsu merged 2 commits into
msgpack:v07-developfrom
xerial:v07-fix-packstring
Apr 9, 2015
Merged

Fix buffer size to ensure#216
komamitsu merged 2 commits into
msgpack:v07-developfrom
xerial:v07-fix-packstring

Conversation

xerial commented Apr 8, 2015

Copy link
Copy Markdown
Member

No description provided.

xerial assigned muga and komamitsu and unassigned muga Apr 8, 2015

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

looks like so. i'll remove it

xerial commented Apr 9, 2015

Copy link
Copy Markdown
Member Author

@komamitsu
Fixed to utilize existing buffer rather than ensuring the buffer size for the whole string size.

Copy link
Copy Markdown
Member

LGTM

komamitsu added a commit that referenced this pull request Apr 9, 2015
komamitsu merged commit e15e30f into msgpack:v07-develop Apr 9, 2015
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL