@Override
  public int read(int offset, byte[] buffer, int bufferOffset, int length) {
    mBuffer.position(offset);
    mBuffer.get(buffer, bufferOffset, length);
    return length;
  }
A trivial implementation of {@link PooledByteBuffer} using {@link ByteBuffer}
imagepipeline-base-test/src/main/java/com/facebook/imagepipeline/testing/TrivialBufferPooledByteBuffer.java