public class NumberUtil extends Object
Modifier and Type | Method and Description |
---|---|
static long |
getVariableValueLength(long value)
calculate the length of a variable length integer in unsigned LEB128 format
|
static long |
readVariableValueLength(byte[] array,
int offset,
boolean reverse)
read a variable length integer in unsigned LEB128 format
|
static BigInteger |
toBigInteger(byte[] array,
int offset,
int length) |
static double |
toDouble(byte[] array,
int offset,
int length) |
static long |
toLong(byte[] array,
int offset,
int length) |
public static double toDouble(byte[] array, int offset, int length)
public static long toLong(byte[] array, int offset, int length)
public static BigInteger toBigInteger(byte[] array, int offset, int length)
public static long readVariableValueLength(byte[] array, int offset, boolean reverse)
public static long getVariableValueLength(long value)
Copyright © 2016–2017 ArangoDB GmbH. All rights reserved.