Files
go-mc/net
Erik Pellizzon e6ca182ba1 Fixed VarInt and VarLong max size
Before VarInt could have had a size of 7 byte without generating errors (max should be 5).
>= 5 is because we start from 0 and i=5 is already in error.
For example if byte of VarInt are [255 255 255 255 255 255 1], at penultimate iteration, i will be 5 (start at 0) so there aren't errors and at the last the break bypass the sec&0x80 check.
Same for VarLong.
2020-04-25 18:06:37 +02:00
..
2019-05-01 15:22:42 +08:00
2020-04-25 18:06:37 +02:00
2019-07-22 13:03:26 +08:00
2019-07-30 15:31:23 +08:00