Package org.aksw.commons.io.buffer.array
Class ArrayOpsByte
java.lang.Object
org.aksw.commons.io.buffer.array.ArrayOpsByte
- All Implemented Interfaces:
ArrayOps<byte[]>
-
Field Summary
FieldsFields inherited from interface org.aksw.commons.io.buffer.array.ArrayOps
BYTE, BYTE_BUFFER, OBJECT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopy(byte[] src, int srcPos, byte[] dest, int destPos, int length) byte[]create(int size) voidget(byte[] array, int index) Class<?>Return the array class (if known) - such as byte[].classbytegetByte(byte[] array, int index) Experimental primitive access methods.intlength(byte[] array) voidvoidsetByte(byte[] array, int index, byte value) static byteMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.aksw.commons.io.buffer.array.ArrayOps
copyRaw, fillRaw, getByteRaw, getRaw, lengthRaw, setByteRaw, setRaw
-
Field Details
-
SYSTEM_THRESHOLD
public static final int SYSTEM_THRESHOLD- See Also:
-
ZERO
-
-
Constructor Details
-
ArrayOpsByte
public ArrayOpsByte()
-
-
Method Details
-
getArrayClass
Description copied from interface:ArrayOpsReturn the array class (if known) - such as byte[].class- Specified by:
getArrayClassin interfaceArrayOps<byte[]>
-
create
public byte[] create(int size) -
getDefaultValue
- Specified by:
getDefaultValuein interfaceArrayOps<byte[]>
-
unbox
-
get
-
set
-
fill
-
copy
public void copy(byte[] src, int srcPos, byte[] dest, int destPos, int length) -
length
public int length(byte[] array) -
getByte
public byte getByte(byte[] array, int index) Description copied from interface:ArrayOpsExperimental primitive access methods. May improve single item operation performance at the expense of somewhat cluttering up the API. -
setByte
public void setByte(byte[] array, int index, byte value)
-