public abstract class PrimitiveArrayUtils
extends java.lang.Object
initUnsafeInstance(), you can switch to sun.misc.Unsafe (deprecated) for fast access.| Constructor and Description |
|---|
PrimitiveArrayUtils() |
| Modifier and Type | Method and Description |
|---|---|
static PrimitiveArrayUtils |
getInstance() |
static PrimitiveArrayUtils |
getInstanceSafe() |
abstract int |
getIntBE(byte[] bytes,
int index) |
abstract int |
getIntLE(byte[] bytes,
int index) |
abstract int |
getIntLE(char[] chars,
int index) |
abstract long |
getLongBE(byte[] bytes,
int index) |
abstract long |
getLongLE(byte[] bytes,
int index) |
static boolean |
initUnsafeInstance()
If sun.misc.Unsafe is available, this will init the static instance with a fast implementation.
|
public static PrimitiveArrayUtils getInstance()
public static boolean initUnsafeInstance()
getInstance() will return it.public static PrimitiveArrayUtils getInstanceSafe()
public abstract int getIntLE(byte[] bytes,
int index)
public abstract int getIntBE(byte[] bytes,
int index)
public abstract long getLongLE(byte[] bytes,
int index)
public abstract long getLongBE(byte[] bytes,
int index)
public abstract int getIntLE(char[] chars,
int index)
Available under the Apache License, Version 2.0 - Copyright © 2012-2020 greenrobot.org. All Rights Reserved.