VarInt .java
net.minecraft.network.VarInt (class, 51 lines): members: MAX_VARINT_SIZE, CONTINUATION_BIT_MASK, DATA_BITS_PER_BYTE, getByteSize, hasContinuationBit, read.
File
API Surface (4)
int getByteSize(final int value)boolean hasContinuationBit(final byte in)int read(final ByteBuf input)ByteBuf write(final ByteBuf output, int value)Fields & Constants (4)
MAX_VARINT_SIZEDATA_BITS_MASKCONTINUATION_BIT_MASKDATA_BITS_PER_BYTEString literals (1)
"VarInt too big"Same Package (41)
Full Source
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | |
| 50 | |
| 51 | |
Decompiled Minecraft 26.3 source of VarInt (net/minecraft/network/VarInt.java) with Mojang official mappings, stored verbatim on the site.