Make ByteBuf constructors public
Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/349366d8 Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/349366d8 Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/349366d8 Branch: refs/heads/master Commit: 349366d85531b6e44791aece2bf2b86eb92a072c Parents: b42ea45 Author: Nick Wellnhofer <wellnho...@aevum.de> Authored: Tue Nov 17 16:29:21 2015 +0100 Committer: Nick Wellnhofer <wellnho...@aevum.de> Committed: Tue Nov 17 19:08:43 2015 +0100 ---------------------------------------------------------------------- runtime/core/Clownfish/ByteBuf.cfh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/349366d8/runtime/core/Clownfish/ByteBuf.cfh ---------------------------------------------------------------------- diff --git a/runtime/core/Clownfish/ByteBuf.cfh b/runtime/core/Clownfish/ByteBuf.cfh index 230bb86..f6f6233 100644 --- a/runtime/core/Clownfish/ByteBuf.cfh +++ b/runtime/core/Clownfish/ByteBuf.cfh @@ -29,25 +29,25 @@ final class Clownfish::ByteBuf nickname BB inherits Clownfish::Obj { /** * @param capacity initial capacity of the ByteBuf, in bytes. */ - inert incremented ByteBuf* + public inert incremented ByteBuf* new(size_t capacity); - inert ByteBuf* + public inert ByteBuf* init(ByteBuf *self, size_t capacity); /** Return a pointer to a new ByteBuf which holds a copy of the passed-in * bytes. */ - inert incremented ByteBuf* + public inert incremented ByteBuf* new_bytes(const void *bytes, size_t size); - inert ByteBuf* + public inert ByteBuf* init_bytes(ByteBuf *self, const void *bytes, size_t size); /** Return a pointer to a new ByteBuf which assumes ownership of the * passed-in string. */ - inert incremented ByteBuf* + public inert incremented ByteBuf* new_steal_bytes(void *bytes, size_t size, size_t capacity); /** Initialize the ByteBuf and assume ownership of the passed-in string.