Lines Matching refs:length
59 pub length: u32, // len(Raw) not including header field
72 self.length, in fmt()
89 if self.length != other.length { in eq()
151 self.length = 0; in reset()
181 let first = MESSAGE_HEADER_SIZE + self.length as usize; // first byte number in add()
184 self.length += alloc_size as u32; // rendering length change in add()
196 length: v.len() as u16, // L in add()
201 if attr.length as usize % PADDING != 0 { in add()
213 self.length += bytes_to_add as u32; // rendering length change in add()
222 self.raw[2..4].copy_from_slice(&(self.length as u16).to_be_bytes()); in write_length()
267 self.length = 0; in encode()
299 self.length = size as u32; in decode()
320 length: u16::from_be_bytes([b[2], b[3]]), // second 2 bytes in decode()
323 let a_l = a.length as usize; // attribute length in decode()