commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Gregory (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CODEC-202) BinaryEncoder / BinaryDecoder should support input with offset and length parameters
Date Sun, 09 Aug 2015 16:42:45 GMT

    [ https://issues.apache.org/jira/browse/CODEC-202?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14679207#comment-14679207
] 

Gary Gregory commented on CODEC-202:
------------------------------------

Hi Oleg,

The only way to do that, and keep BC, is to have the BinaryDecoder2 interface extend BinaryDecoder
to add the method(s) you want. Same for the encoder interface.

If you do not care about the interfaces, then we can talk about a narrower solution and which
codec you'd like to see this added.

Thoughts?

Gary

> BinaryEncoder / BinaryDecoder should support input with offset and length parameters
> ------------------------------------------------------------------------------------
>
>                 Key: CODEC-202
>                 URL: https://issues.apache.org/jira/browse/CODEC-202
>             Project: Commons Codec
>          Issue Type: Improvement
>    Affects Versions: 1.10
>            Reporter: Oleg Kalnichevski
>
> BinaryEncoder / BinaryDecoder interfaces should also support input with offset and length
parameters. At the moment one often has to create an intermediate copy of an byte array just
to truncate it to a particular length leading to unnecessary intermediate garbage. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message