com.bumptech.glide.load.engine.bitmap_recycle.ByteArrayAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glide Show documentation
Show all versions of glide Show documentation
A fast and efficient image loading library for Android focused on smooth scrolling.
package com.bumptech.glide.load.engine.bitmap_recycle;
/** Adapter for handling primitive byte arrays. */
@SuppressWarnings("PMD.UseVarargs")
public final class ByteArrayAdapter implements ArrayAdapterInterface {
private static final String TAG = "ByteArrayPool";
@Override
public String getTag() {
return TAG;
}
@Override
public int getArrayLength(byte[] array) {
return array.length;
}
@Override
public byte[] newArray(int length) {
return new byte[length];
}
@Override
public int getElementSizeInBytes() {
return 1;
}
}