Lines Matching refs:MESSAGE_HEADER_SIZE
22 pub const MESSAGE_HEADER_SIZE: usize = 20; constant
48 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()
306 let mut b = &buf[MESSAGE_HEADER_SIZE..full_size]; in decode()