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);
}

/Niklas


I mean:

int pos = buf.position();

:)

/Niklas

Reply via email to