private byte[] getByteArray(int requestedSize) {
    final int bucketedSize = this.getBucketedSize(requestedSize);
    byte[] byteArray = mByteArraySoftRef.get();
    if (byteArray == null || byteArray.length < bucketedSize) {
      byteArray = allocateByteArray(bucketedSize);
    }
    return byteArray;
  }
Get exclusive access to the byte array of size greater or equal to the passed one.

<p>Under the hood this method acquires an exclusive lock that is released when the returned
reference is closed.
imagepipeline/src/main/java/com/facebook/imagepipeline/memory/SharedByteArray.java