You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucy.apache.org by "Nick Wellnhofer (JIRA)" <ji...@apache.org> on 2014/09/05 23:10:29 UTC
[lucy-issues] [jira] [Updated] (CLOWNFISH-11) Rework ByteBuf
[ https://issues.apache.org/jira/browse/CLOWNFISH-11?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nick Wellnhofer updated CLOWNFISH-11:
-------------------------------------
Component/s: Runtime
> Rework ByteBuf
> --------------
>
> Key: CLOWNFISH-11
> URL: https://issues.apache.org/jira/browse/CLOWNFISH-11
> Project: Apache Lucy-Clownfish
> Issue Type: Task
> Components: Runtime
> Reporter: Nick Wellnhofer
> Priority: Minor
>
> I recently toyed with the idea of reworking Clownfish's ByteBuf in a way similar to the immutable String changes. This would mean to use a separate class for immutable byte buffers replacing ViewByteBuf and restrict ByteBuf to creating byte buffers.
> The immutable ByteBuf class could then have a companion iterator class that can be used to parse a byte buffer's content. All the NumUtils_decode_* functions could go there, for example.
> The NumUtils_encode_* function could be made methods of the mutable ByteBuf.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)