[Crate] Use Byteorder crate

This commit is contained in:
CosminPerRam 2023-03-09 16:41:01 +02:00
parent e163774685
commit 9ad2f143dd
3 changed files with 17 additions and 22 deletions

View file

@ -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()
})
}