Searched refs:LENGTH (Results 1 – 7 of 7) sorted by relevance
40 pub const LENGTH: usize = 1; constant81 let of = field::OPTIONS(data[field::LENGTH]); in check_len()107 data[field::LENGTH] in header_len()116 &data[field::OPTIONS(data[field::LENGTH])] in options()133 data[field::LENGTH] = value; in set_header_len()142 let len = data[field::LENGTH]; in options_mut()
82 pub const LENGTH: usize = 1; constant115 if len < field::LENGTH { in check_len()123 if len == field::LENGTH { in check_len()127 let df = field::DATA(data[field::LENGTH]); in check_len()155 data[field::LENGTH] in data_len()187 data[field::LENGTH] = value; in set_data_len()
85 pub const LENGTH: usize = 1; constant203 data[field::LENGTH] in header_len()268 &data[field::ADDRESSES(data[field::LENGTH])] in addresses()285 data[field::LENGTH] = value; in set_header_len()379 let len = data[field::LENGTH]; in set_addresses()
23 pub const LENGTH: Field = 4..6; constant95 NetworkEndian::read_u16(&data[field::LENGTH]) in len()163 NetworkEndian::write_u16(&mut data[field::LENGTH], value) in set_len()
74 pub const LENGTH: usize = 1; constant181 let data_range = field::DATA(data[field::LENGTH]); in check_len()212 data[field::LENGTH] in data_len()296 data[field::LENGTH] = value; in set_data_len()
426 pub const LENGTH: Field = 4..6; constant515 NetworkEndian::read_u16(&data[field::LENGTH]) in payload_len()598 NetworkEndian::write_u16(&mut data[field::LENGTH], value); in set_payload_len()
293 pub const LENGTH: Field = 2..4; constant382 NetworkEndian::read_u16(&data[field::LENGTH]) in total_len()513 NetworkEndian::write_u16(&mut data[field::LENGTH], value) in set_total_len()