Lines Matching refs:usize
23 impl ops::Add<usize> for SeqNumber {
26 fn add(self, rhs: usize) -> SeqNumber { in add()
27 if rhs > i32::MAX as usize { in add()
34 impl ops::Sub<usize> for SeqNumber {
37 fn sub(self, rhs: usize) -> SeqNumber { in sub()
38 if rhs > i32::MAX as usize { in sub()
45 impl ops::AddAssign<usize> for SeqNumber {
46 fn add_assign(&mut self, rhs: usize) { in add_assign() argument
52 type Output = usize;
54 fn sub(self, rhs: SeqNumber) -> usize { in sub() argument
59 result as usize in sub()
91 URGENT.end..(length as usize) in OPTIONS()
112 pub const HEADER_LEN: usize = field::URGENT.end;
143 let header_len = self.header_len() as usize; in check_len()
287 pub fn segment_len(&self) -> usize { in segment_len() argument
289 let mut length = data.len() - self.header_len() as usize; in segment_len()
362 let header_len = self.header_len() as usize; in payload()
581 let header_len = self.header_len() as usize; in payload_mut()
619 length = *buffer.get(1).ok_or(Error)? as usize; in parse()
673 pub fn buffer_len(&self) -> usize { in buffer_len() argument
756 pub const fn len(self) -> usize { in len() argument
884 pub fn header_len(&self) -> usize { in header_len() argument
895 let sack_range_len: usize = self in header_len()
910 pub fn buffer_len(&self) -> usize { in buffer_len() argument
974 pub const fn segment_len(&self) -> usize { in segment_len() argument