mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
[Protocol] Remove bufferer::remaining_data_vec function and replace its usage
This commit is contained in:
parent
d61085b1ab
commit
8fe521749a
4 changed files with 5 additions and 7 deletions
|
|
@ -87,7 +87,7 @@ impl SplitPacket {
|
|||
compressed,
|
||||
decompressed_size,
|
||||
uncompressed_crc32,
|
||||
payload: buffer.remaining_data_vec(),
|
||||
payload: buffer.remaining_data().to_vec(),
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -213,7 +213,7 @@ impl Packet {
|
|||
Ok(Self {
|
||||
header: buffer.get_u32()?,
|
||||
kind: buffer.get_u8()?,
|
||||
payload: buffer.remaining_data_vec(),
|
||||
payload: buffer.remaining_data().to_vec(),
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue