Package org.greenrobot.essentials
Class PrimitiveArrayUtils.SafeImpl
- java.lang.Object
-
- org.greenrobot.essentials.PrimitiveArrayUtils
-
- org.greenrobot.essentials.PrimitiveArrayUtils.SafeImpl
-
- Enclosing class:
- PrimitiveArrayUtils
private static class PrimitiveArrayUtils.SafeImpl extends PrimitiveArrayUtils
-
-
Constructor Summary
Constructors Modifier Constructor Description private
SafeImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getIntBE(byte[] bytes, int index)
int
getIntLE(byte[] bytes, int index)
int
getIntLE(char[] chars, int index)
Little endian.long
getLongBE(byte[] bytes, int index)
long
getLongLE(byte[] bytes, int index)
-
Methods inherited from class org.greenrobot.essentials.PrimitiveArrayUtils
getInstance, getInstanceSafe, initUnsafeInstance
-
-
-
-
Method Detail
-
getIntLE
public int getIntLE(byte[] bytes, int index)
- Specified by:
getIntLE
in classPrimitiveArrayUtils
-
getIntBE
public int getIntBE(byte[] bytes, int index)
- Specified by:
getIntBE
in classPrimitiveArrayUtils
-
getLongLE
public long getLongLE(byte[] bytes, int index)
- Specified by:
getLongLE
in classPrimitiveArrayUtils
-
getLongBE
public long getLongBE(byte[] bytes, int index)
- Specified by:
getLongBE
in classPrimitiveArrayUtils
-
getIntLE
public int getIntLE(char[] chars, int index)
Little endian.- Specified by:
getIntLE
in classPrimitiveArrayUtils
-
-