public class VarIntTool extends Object
| Constructor and Description |
|---|
VarIntTool() |
| Modifier and Type | Method and Description |
|---|---|
static int |
decodeInt(byte[] bytes) |
static int |
decodeInt(byte[] bytes,
int offset) |
static long |
decodeLong(byte[] bytes) |
static long |
decodeLong(byte[] bytes,
int offset) |
static byte[] |
encode(long value) |
static Optional<Long> |
fromInputStream(InputStream is) |
static int |
length(long value) |
public static int length(long value)
public static byte[] encode(long value)
public static long decodeLong(byte[] bytes,
int offset)
public static long decodeLong(byte[] bytes)
public static int decodeInt(byte[] bytes,
int offset)
public static int decodeInt(byte[] bytes)
public static Optional<Long> fromInputStream(InputStream is)
Copyright © 2009–2021. All rights reserved.