Package net.minecraft.network
Class VarLong
java.lang.Object
net.minecraft.network.VarLong
-
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
(long p_297916_) static boolean
hasContinuationBit
(byte p_298368_) static long
read
(io.netty.buffer.ByteBuf p_297482_) static io.netty.buffer.ByteBuf
write
(io.netty.buffer.ByteBuf p_301156_, long p_297622_)
-
Field Details
-
MAX_VARLONG_SIZE
private static final int MAX_VARLONG_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
-
VarLong
public VarLong()
-
-
Method Details
-
getByteSize
public static int getByteSize(long p_297916_) -
hasContinuationBit
public static boolean hasContinuationBit(byte p_298368_) -
read
public static long read(io.netty.buffer.ByteBuf p_297482_) -
write
public static io.netty.buffer.ByteBuf write(io.netty.buffer.ByteBuf p_301156_, long p_297622_)
-