public final class VarIntCodecUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static long |
getVariableLengthInteger(io.netty.buffer.ByteBuf in,
int offset,
int len)
Get the
variable length integer
from the
ByteBuf. |
static int |
numBytesForVariableLengthInteger(long value)
Returns the number of bytes needed to encode the
variable length integer.
|
static int |
numBytesForVariableLengthIntegerFromByte(byte value)
Returns the number of bytes needed to encode a
variable length integer,
based on the initial encoded byte.
|
static long |
readVariableLengthInteger(io.netty.buffer.ByteBuf in,
int len)
Read the
variable length integer
from the
ByteBuf. |
static void |
writeVariableLengthInteger(io.netty.buffer.ByteBuf out,
long value)
Write the
variable length integer into the
ByteBuf. |
public static int numBytesForVariableLengthInteger(long value)
public static int numBytesForVariableLengthIntegerFromByte(byte value)
public static long readVariableLengthInteger(io.netty.buffer.ByteBuf in,
int len)
ByteBuf.public static long getVariableLengthInteger(io.netty.buffer.ByteBuf in,
int offset,
int len)
ByteBuf.public static void writeVariableLengthInteger(io.netty.buffer.ByteBuf out,
long value)
ByteBuf.Copyright © 2023-2024 The Netty Project. All Rights Reserved.