@Override
  public int read(int ashmemMemoryOffset, byte[] byteArray, int byteArrayOffset, int count) {
    // NULLSAFE_FIXME[Nullable Dereference]
    int numToRead = Math.min(count, mBuf.length - ashmemMemoryOffset);
    // NULLSAFE_FIXME[Parameter Not Nullable]
    System.arraycopy(mBuf, ashmemMemoryOffset, byteArray, byteArrayOffset, numToRead);
    return numToRead;
  }
A fake implementation of {@link com.facebook.memory.ashmem.AshmemMemoryChunk} to allow us to test
out pools and other functionality. This uses byte arrays instead of actual ashmem memory, but
supports the same public interface
memory-types/ashmem/src/test/java/com/facebook/imagepipeline/testing/FakeAshmemMemoryChunk.java