Package net.minecraft.network
Class VarInt
java.lang.Object
net.minecraft.network.VarInt
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private static final int
private static final int
private static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
getByteSize
(int p_295994_) static boolean
hasContinuationBit
(byte p_294861_) static int
read
(io.netty.buffer.ByteBuf p_296169_) static io.netty.buffer.ByteBuf
write
(io.netty.buffer.ByteBuf p_295539_, int p_294256_)
-
Field Details
-
MAX_VARINT_SIZE
private static final int MAX_VARINT_SIZE- See Also:
-
DATA_BITS_MASK
private static final int DATA_BITS_MASK- See Also:
-
CONTINUATION_BIT_MASK
private static final int CONTINUATION_BIT_MASK- See Also:
-
DATA_BITS_PER_BYTE
private static final int DATA_BITS_PER_BYTE- See Also:
-
-
Constructor Details
-
VarInt
public VarInt()
-
-
Method Details
-
getByteSize
public static int getByteSize(int p_295994_) -
hasContinuationBit
public static boolean hasContinuationBit(byte p_294861_) -
read
public static int read(io.netty.buffer.ByteBuf p_296169_) -
write
public static io.netty.buffer.ByteBuf write(io.netty.buffer.ByteBuf p_295539_, int p_294256_)
-