Skip 3 bytes instead of overwriting 0

This commit is contained in:
themode 2021-09-26 17:39:30 +02:00
parent d02a898646
commit 729fc14e6d

View File

@ -48,8 +48,7 @@ public final class Utils {
public static int writeEmptyVarIntHeader(@NotNull ByteBuffer buffer) {
final int index = buffer.position();
buffer.putShort((short) 0);
buffer.put((byte) 0);
buffer.position(index + 3); // Skip 3 bytes
return index;
}