e33d57e767
optimize nbt bytearray
2022-08-24 21:02:11 -05:00
2a2e82efeb
make some code more idiomatic
2022-08-24 20:00:44 -05:00
mat
ac4d675d44
NBT decoder optimizations ( #17 )
...
* replace HashMap with AHashMap
* faster read_string by just doing read_exact
* re-enable all the benchmarks
2022-08-19 14:14:08 -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
cd9a05e5a6
read_into -> read_from
...
yeah
2022-06-25 02:33:28 -05:00
ba399c4440
switch things to use azalea-buf
2022-06-23 15:28:33 -05:00
5ca49e680e
azalea-buf
2022-06-23 15:12:17 -05:00
0530c57579
Fixes
2022-05-26 17:55:07 -05:00
c987812927
clippy
2022-05-03 18:20:24 +00:00
0bd798045c
more azalea-world stuff
2022-05-03 00:33:32 -05:00
db2fcecdc3
Change some generics to impl Trait
2022-05-01 22:58:20 -05:00
44db8948d6
Re-enable NBT decoding benchmark
2022-05-01 22:53:24 -05:00
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
97d392f4e5
fix warnings in azalea-nbt
2022-04-24 14:56:46 -05:00
59ef945094
fix writing wrong ids in nbt
2022-04-24 14:53:01 -05:00
b43ad19636
remove an unused thing from dependencies
2022-04-24 14:44:02 -05:00
7a272c216b
Vec<Tag> to [Tag]
2022-04-23 04:28:19 +00:00
46454793e0
clean up some code
2022-04-23 04:14:19 +00:00
3a6810ca1d
vroom vroom
2022-04-22 22:38:42 -05:00
3057ae8b4a
maybe optimization
2022-04-22 20:49:42 -05:00
b03d3da659
inline reading in nbt decoding
2022-04-22 18:23:29 +00:00
99652200aa
simplify nbt list optimization
2022-04-22 18:03:57 +00:00
7df6522489
remove irrelevant comment
2022-04-22 14:51:03 +00:00
67c6e33344
fix nbt decode benchmark
2022-04-22 00:52:22 -05:00
1bbd8b99b3
nbt optimizations
2022-04-22 05:02:45 +00:00
39d77475d3
remove some useless code
2022-04-22 04:37:45 +00:00
248f752748
simplify error handling
2022-04-22 04:33:58 +00:00
03d14e13f2
make benchmarks work again
2022-04-21 18:08:33 +00:00
3beb58189b
tokio features in az-nbt
2022-04-21 17:24:20 +00:00
af28b0e57a
reading nbt in the protocol works
2021-12-26 14:15:06 -06:00
1cdd061a99
ok i give up remove the async benchmarks
2021-12-25 15:10:08 -06:00
6ae94b96e6
start adding nbt to the protocol
2021-12-20 15:22:02 -06:00
cf88c7b795
add some things to readmes
2021-12-20 13:36:20 -06:00
b91b579bef
add more tests and benchmarks for nbt
2021-12-20 01:53:23 -06:00
5090ebe25f
slight nbt optimizations
2021-12-20 01:04:18 -06:00
91a26609f7
make write_string its own function
2021-12-19 23:20:58 -06:00
c66dd8d833
make read_string its own function
2021-12-19 23:06:05 -06:00
f50cdfccfc
::with_capacity instead of ::new for vecs in nbt
2021-12-19 20:20:43 -06:00
55c9f58219
nbt tests
2021-12-19 13:07:54 -06:00
b030b9de93
nbt
2021-12-18 20:33:16 -06:00
76e1985fc4
reading nbt
2021-12-18 17:02:23 -06:00