public final class ByteArrayAdapter extends Object implements ArrayAdapterInterface<byte[]>
Constructor and Description |
---|
ByteArrayAdapter() |
Modifier and Type | Method and Description |
---|---|
int |
getArrayLength(byte[] array)
Return the length of the given array.
|
int |
getElementSizeInBytes()
Return the size of an element in the array in bytes (e.g.
|
String |
getTag()
TAG for logging.
|
byte[] |
newArray(int length)
Allocate and return an array of the specified size.
|
public String getTag()
ArrayAdapterInterface
getTag
in interface ArrayAdapterInterface<byte[]>
public int getArrayLength(byte[] array)
ArrayAdapterInterface
getArrayLength
in interface ArrayAdapterInterface<byte[]>
public byte[] newArray(int length)
ArrayAdapterInterface
newArray
in interface ArrayAdapterInterface<byte[]>
public int getElementSizeInBytes()
ArrayAdapterInterface
getElementSizeInBytes
in interface ArrayAdapterInterface<byte[]>