Package 

Class ByteArrayAdapter

  • All Implemented Interfaces:
    com.mobwith.imgmodule.load.engine.bitmap_recycle.ArrayAdapterInterface

    
    public final class ByteArrayAdapter
     implements ArrayAdapterInterface<Array<byte>>
                        

    Adapter for handling primitive byte arrays.

    • Method Summary

      Modifier and Type Method Description
      String getTag() TAG for logging.
      int getArrayLength(Array<byte> array) Return the length of the given array.
      Array<byte> newArray(int length) Allocate and return an array of the specified size.
      int getElementSizeInBytes() Return the size of an element in the array in bytes (e.g.
      • Methods inherited from class com.mobwith.imgmodule.load.engine.bitmap_recycle.ArrayAdapterInterface

        getArrayLength, newArray
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • newArray

         Array<byte> newArray(int length)

        Allocate and return an array of the specified size.

      • getElementSizeInBytes

         int getElementSizeInBytes()

        Return the size of an element in the array in bytes (e.g. for int return 4).