Re: [codec]Bug or Feature

2012-02-11 Thread Gary Gregory
Hi Andreas, Feel free to provide a test and a patch ;) Gary On Feb 11, 2012, at 13:39, 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 size bytes > * > *

Re: [codec]Bug or Feature

2012-02-11 Thread Dave Brosius
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 size bytes * * @param size minimum spare space required */

[codec]Bug or Feature

2012-02-11 Thread Andreas Menke
Hi, from BaseNCodec.java: how does resizeBuffer() know how big 'int size' is? Bug or Feature? /** * Ensure that the buffer has room for size bytes * * @param size minimum spare space required */ protected void ensureBufferSize(int size){ if ((buffer == null)