Seems to work much better than get( index i) :) Thanx Michael
Niklas Therning wrote:
Niklas Therning wrote:int pos = position(); try { // Code which uses ByteBuffer.get() // ... } finally { buf.position(pos); } /NiklasI mean: int pos = buf.position(); :) /Niklas
