Merge branch 'bytebuf-api-v2' This differs from the initial pull request by using methods instead of constructors to convert between Strings and ByteBufs. This has some advantages:
- Doesn't require custom code for host language wrappers. - Allows direct access to ivars. - Doesn't clutter up String constructors. Obsoletes and resolves #43. Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/71ea0c57 Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/71ea0c57 Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/71ea0c57 Branch: refs/heads/master Commit: 71ea0c573f3493da15e192a6ab0f6f235f3c7291 Parents: cada6ca 3571968 Author: Nick Wellnhofer <wellnho...@aevum.de> Authored: Thu Nov 12 14:08:30 2015 +0100 Committer: Nick Wellnhofer <wellnho...@aevum.de> Committed: Thu Nov 12 14:10:21 2015 +0100 ---------------------------------------------------------------------- runtime/core/Clownfish/ByteBuf.c | 29 ++++++++++++++++++++++++-- runtime/core/Clownfish/ByteBuf.cfh | 17 ++++++++++++++- runtime/core/Clownfish/CharBuf.c | 5 +++++ runtime/core/Clownfish/CharBuf.cfh | 5 +++++ runtime/core/Clownfish/String.c | 6 ++++++ runtime/core/Clownfish/String.cfh | 5 +++++ runtime/core/Clownfish/Test/TestByteBuf.c | 29 +++++++++++++++++++++++++- runtime/core/Clownfish/Test/TestCharBuf.c | 14 ++++++++++++- runtime/core/Clownfish/Test/TestString.c | 13 +++++++++++- 9 files changed, 117 insertions(+), 6 deletions(-) ----------------------------------------------------------------------