Lines Matching refs:len
46 if self.pos >= self.data.len() { in read_u8()
55 if self.pos + 2 > self.data.len() { in read_u16()
69 if self.pos + 4 > self.data.len() { in read_u32()
83 if self.pos + 8 > self.data.len() { in read_u64()
102 if self.pos + buf.len() > self.data.len() { in read_exact()
105 buf.copy_from_slice(&self.data[self.pos..self.pos + buf.len()]); in read_exact()
106 self.pos += buf.len(); in read_exact()
114 if self.pos + buf.len() * size_of::<u16>() > self.data.len() * size_of::<u16>() { in read_u16_into()
118 for i in 0..buf.len() { in read_u16_into()
142 pos = self.data.len() as i64 + offset; in seek()
149 if pos < 0 || pos > self.data.len() as i64 { in seek()
158 if self.pos >= self.data.len() { in write_u8()
170 if self.pos + 2 > self.data.len() { in write_u16()
184 if self.pos + 4 > self.data.len() { in write_u32()
198 if self.pos + 8 > self.data.len() { in write_u64()
217 if self.pos + buf.len() > self.data.len() { in write_exact()
221 self.data[self.pos..self.pos + buf.len()].copy_from_slice(&buf[..]); in write_exact()
222 self.pos += buf.len(); in write_exact()
245 pub fn len(&self) -> usize { in len() method
246 return self.data.len(); in len()