commons-issues mailing list archives

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

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

Oleg Kalnichevski commented on CODEC-202:
-----------------------------------------

Hi Gary
The interfaces do not need to change until 2.0 but it would be nice to have {{public byte[]
encode(final byte[] b, int off, int len)}} method in {{Base64}}

Oleg
 

> 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