Added a duplicate method for ByteBufferReader.