Searched refs:MESSAGE_HEADER_SIZE (Results 1 – 3 of 3) sorted by relevance
22 pub const MESSAGE_HEADER_SIZE: usize = 20; constant48 b.len() >= MESSAGE_HEADER_SIZE && u32::from_be_bytes([b[4], b[5], b[6], b[7]]) == MAGIC_COOKIE in is_message()118 raw.extend_from_slice(&[0; MESSAGE_HEADER_SIZE]); in new()181 let first = MESSAGE_HEADER_SIZE + self.length as usize; // first byte number in add()227 self.grow(MESSAGE_HEADER_SIZE, false); in write_header()232 self.raw[8..MESSAGE_HEADER_SIZE].copy_from_slice(&self.transaction_id.0); in write_header()238 self.raw[8..MESSAGE_HEADER_SIZE].copy_from_slice(&self.transaction_id.0); in write_transaction_id()275 if buf.len() < MESSAGE_HEADER_SIZE { in decode()282 let full_size = MESSAGE_HEADER_SIZE + size; // len(m.Raw) in decode()302 .copy_from_slice(&buf[8..MESSAGE_HEADER_SIZE]); in decode()[all …]
109 let start_of_hmac = MESSAGE_HEADER_SIZE + m.length as usize in check()
19 CLASS_REQUEST, MESSAGE_HEADER_SIZE, METHOD_BINDING,171 m.raw.drain(m.length as usize + MESSAGE_HEADER_SIZE..); in benchmark_fingerprint()