GitHub user nwellnhof opened a pull request:
https://github.com/apache/lucy-clownfish/pull/48
ByteBuf and Blob API
Overhaul ByteBuf and Blob API as discussed on lucy-dev.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/nwellnhof/lucy-clownfish bytebuf-api
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/lucy-clownfish/pull/48.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #48
----
commit d4665edf94bdb5e43b180ca13585b0ff8b520608
Author: Nick Wellnhofer <[email protected]>
Date: 2015-12-09T13:16:51Z
Remove Blob_compare and BB_compare
commit c8c942d3231345da5e9ba5ea38c9af18b82152d2
Author: Nick Wellnhofer <[email protected]>
Date: 2015-12-09T13:29:46Z
Remove BB_Mimic and BB_Mimic_Bytes
It can be replaced with BB_Set_Size(bb, 0) followed by BB_Cat_*.
commit 8c4b2905a269c1a2dc7a781c6eb61d0fe4d35680
Author: Nick Wellnhofer <[email protected]>
Date: 2015-12-09T13:31:56Z
Make ByteBuf and its methods public
commit 7165ca565d24596191eb8c417d3af1523dcf1a1d
Author: Nick Wellnhofer <[email protected]>
Date: 2015-12-09T13:55:53Z
Rework allocation and oversizing of ByteBufs
Always round up capacity to next multiple of eight.
Don't call Memory_oversize, but oversize by custom amount of 25%.
Check for integer overflow. This should only matter on exotic platforms,
but it doesn't cost much.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---