mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
[Crate] Use Byteorder crate
This commit is contained in:
parent
e163774685
commit
9ad2f143dd
3 changed files with 17 additions and 22 deletions
|
|
@ -21,7 +21,7 @@ impl Packet {
|
|||
Ok(Self {
|
||||
header: buffer.get_u32()?,
|
||||
kind: buffer.get_u8()?,
|
||||
payload: buffer.get_data_in_front_of_position()
|
||||
payload: buffer.remaining_data_vec()
|
||||
})
|
||||
}
|
||||
|
||||
|
|
@ -110,7 +110,7 @@ impl SplitPacket {
|
|||
compressed,
|
||||
decompressed_size,
|
||||
uncompressed_crc32,
|
||||
payload: buffer.get_data_in_front_of_position()
|
||||
payload: buffer.remaining_data_vec()
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue