public final class VarLengthIntUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_VAR_INT_SIZE |
static int |
MAX_VAR_LONG_SIZE |
| Constructor and Description |
|---|
VarLengthIntUtils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
decodeInt(DataInput is) |
static long |
decodeLong(byte[] ba,
int index) |
static long |
decodeLong(DataInput is) |
static int |
encodeInt(byte[] bytes,
int offset,
int value) |
static int |
encodeInt(DataOutput os,
int value) |
static int |
encodeLong(byte[] bytes,
long value) |
static int |
encodeLong(DataOutput os,
long value) |
public static final int MAX_VAR_LONG_SIZE
public static final int MAX_VAR_INT_SIZE
public static int encodeLong(DataOutput os, long value) throws IOException
IOExceptionpublic static int encodeLong(byte[] bytes,
long value)
public static long decodeLong(DataInput is) throws IOException
IOExceptionpublic static long decodeLong(byte[] ba,
int index)
public static int encodeInt(byte[] bytes,
int offset,
int value)
public static int encodeInt(DataOutput os, int value) throws IOException
IOExceptionpublic static int decodeInt(DataInput is) throws IOException
IOExceptionCopyright © 2023–2024 The Apache Software Foundation. All rights reserved.