Apply "network nbt" format for net/packet.

examples and tests are updated
This commit is contained in:
Tnze
2023-11-19 02:01:17 +08:00
parent 7d6e65f554
commit 61916db07a
4 changed files with 24 additions and 22 deletions

View File

@ -77,7 +77,7 @@ func ExampleMarshal_setSlot() {
// Output:
// 15 00 00 05 00
// 15 00 00 05 01 01 01 00
// 15 00 00 05 01 01 01 03 00 00 12 34 56 78
// 15 00 00 05 01 01 01 03 12 34 56 78
}
func BenchmarkPacket_Pack_packWithoutCompression(b *testing.B) {