1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 14:26:04 +00:00
Commit graph

16 commits

Author SHA1 Message Date
mat
bc3aa9467a
Replace impl Read with Cursor<&[u8]> (#26)
* Start getting rid of Cursor

* try to make the tests pass and fail

* make the tests pass

* remove unused uses

* fix clippy warnings

* fix potential OOM exploits

* fix OOM in az-nbt

* fix nbt benchmark

* fix a test

* start replacing it with Cursor<Vec<u8>>

* wip

* fix all the issues

* fix all tests

* fix nbt benchmark

* fix warnings
2022-10-07 20:12:36 -05:00
ab45bb7825 rename variants in packet enums to be shorter 2022-09-06 18:41:59 +00:00
mat
cfb190d00c
get rid of Readable & Writable (#21) 2022-09-02 12:11:14 -05:00
mat
4d072d8057 sample can be empty 2022-09-01 19:26:21 -05:00
mat
d564b4cc4f ping players can be negative 2022-09-01 19:11:24 -05:00
mat
5a9fca0ca9
Better errors (#14)
* make reading use thiserror

* finish implementing all the error things

* clippy warnings related to ok_or

* fix some errors in other places

* thiserror in more places

* don't use closures in a couple places

* errors in writing packet

* rip backtraces

* change some BufReadError::Custom to UnexpectedEnumVariant

* Errors say what packet is bad

* error on leftover data and fix

it wasn't reading the properties for gameprofile
2022-08-06 02:22:19 -05:00
mat
4ee4687053 Split clientbound and serverbound packets 2022-07-29 02:59:40 -05:00
mat
37c6618c16 Fix everything so azalea-buf works 2022-06-23 19:17:04 -05:00
mat
dedcd0de8f impl Write instead of Vec<u8> for consistency 2022-05-01 23:38:55 -05:00
mat
567c6f4f2c Reduce usage of AsyncRead
We already receive everything from the server when it tells us the length, so we can actually just treat the stream as a Read instead of an AsyncRead.
2022-05-01 21:54:03 -05:00
mat
248f752748 simplify error handling 2022-04-22 04:33:58 +00:00
mat
cbdab27cb5 add declare_state_packets to the other states 2022-04-19 19:17:36 -05:00
mat
a1afbb6031 start adding packet macros 2022-01-01 23:55:19 -06:00
mat
1a961d968b fix some clippy warnings 2021-12-26 14:17:01 -06:00
mat
c4eecaf13a try to implement compression 2021-12-16 23:33:06 -06:00
mat
9642558f8f azalea 2021-12-15 23:10:55 -06:00
Renamed from minecraft-protocol/src/packets/status/clientbound_status_response_packet.rs (Browse further)