public int readFrom ( ByteBuffer src , long destOffset ) { if ( src . remaining ( ) + destOffset >= size ( ) ) throw new BufferOverflowException ( ) ; int readLen = src . remaining ( ) ; ByteBuffer b = toDirectByteBuffer ( destOffset , readLen ) ; b . position ( 0 ) ; b . put ( src ) ; return readLen ; }
Reads the given source byte buffer into this buffer at the given offset