Skip to content

Commit

Permalink
lmao i failed
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinGruber committed Aug 27, 2024
1 parent b1f893f commit 8a654ef
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/soeprotocol/session_request_packet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,10 @@ impl SessionRequestPacket {
}
}


impl SessionRequestPacket {
pub fn from(mut _rdr: Cursor<&std::vec::Vec<u8>>) -> SessionRequestPacket {
let crc_length = _rdr.read_u32::<BigEndian>().unwrap_or_default();
let session_id = _rdr.read_u32::<BigEndian>().unwrap_or_default();
let crc_length = _rdr.read_u32::<BigEndian>().unwrap_or_default();
let udp_length = _rdr.read_u32::<BigEndian>().unwrap_or_default();
let protocol_data_position = _rdr.position() as usize;
let raw_data = _rdr.into_inner();
Expand Down

0 comments on commit 8a654ef

Please sign in to comment.