commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Brosius <dbros...@apache.org>
Subject Re: [codec]Bug or Feature
Date Sat, 11 Feb 2012 18:46:06 GMT
looks wrong to me as well.



On 02/11/2012 12:01 PM, Andreas Menke wrote:
> Hi,
>
> from BaseNCodec.java:
>
> how does resizeBuffer() know how big 'int size' is? Bug or Feature?
>
>     /**
>      * Ensure that the buffer has room for <code>size</code> bytes
>      *
>      * @param size minimum spare space required
>      */
>     protected void ensureBufferSize(int size){
>         if ((buffer == null) || (buffer.length < pos + size)){
>             resizeBuffer();
>         }
>     }
>
> Regards
>
> Andreas
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message