public final class VarInt extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
VarInt.VarIntEndOfBufferException |
static class |
VarInt.VarIntParseException |
| Modifier and Type | Method and Description |
|---|---|
static int |
calculateIntLength(int val) |
static int |
calculateLongLength(long val) |
static int |
getInt(ByteBuffer buffer) |
static long |
getLong(ByteBuffer buffer) |
static void |
putInt(ByteBuffer dest,
int val) |
static void |
putLong(ByteBuffer dest,
long val) |
static void |
writeInt(OutputStream out,
int val) |
static void |
writeLong(OutputStream out,
long val) |
public static int getInt(ByteBuffer buffer) throws VarInt.VarIntParseException, VarInt.VarIntEndOfBufferException
public static long getLong(ByteBuffer buffer) throws VarInt.VarIntParseException, VarInt.VarIntEndOfBufferException
public static void putInt(ByteBuffer dest, int val)
public static void writeInt(OutputStream out, int val) throws IOException
IOExceptionpublic static void putLong(ByteBuffer dest, long val)
public static void writeLong(OutputStream out, long val) throws IOException
IOExceptionpublic static int calculateIntLength(int val)
public static int calculateLongLength(long val)
Copyright © 2018. All rights reserved.