docs: @Override
    protected Bitmap decodeByteArrayAsPurgeable(
        CloseableReference<PooledByteBuffer> bytesRef, BitmapFactory.Options options) {
      final PooledByteBuffer pooledByteBuffer = bytesRef.get();
      final int length = pooledByteBuffer.size();
      final CloseableReference<byte[]> encodedBytesArrayRef = mFlexByteArrayPool.get(length);
      try {
        final byte[] encodedBytesArray = encodedBytesArrayRef.get();
        pooledByteBuffer.read(0, encodedBytesArray, 0, length);
        Bitmap bitmap = BitmapFactory.decodeByteArray(
            encodedBytesArray,
            0,
            length,
            options);
        return Preconditions.checkNotNull(bitmap, "BitmapFactory returned null");
      } finally {
        CloseableReference.closeSafely(encodedBytesArrayRef);
      }
    }