Re: How to make use of new ByteBuffer features in Java

2010-10-19 Thread Bryan Duxbury
On Tue, Oct 19, 2010 at 10:34 AM, Jake Luciani wrote: > "There’s some trickiness that goes into understanding why the first element > in the backing byte array is arrayOffset() + position(), but for right now, > trust me that it’s the case." > In my experiments, the only time I could get a nonze

Re: How to make use of new ByteBuffer features in Java

2010-10-19 Thread Jake Luciani
"There’s some trickiness that goes into understanding why the first element in the backing byte array is arrayOffset() + position(), but for right now, trust me that it’s the case." Can you explain this? also, remaining() is defined as limit() - position() so when you say out.write(value.array(),