4619e88a7b
Motivation: We failed to correctly calculate the endOffset when wrap multiple ByteBuffer and so not wrapped everything when an offset > 0 is used. Modifications: Correctly calculate endOffset. Result: All ByteBuffers are correctly wrapped when offset > 0.