[mr3258] Use ByteBuffer::rfinish() instead of ByteBuffer::rpos(ByteBuffer::wpos()); some codestyle