Lines Matching refs:u8
13 data: Vec<u8>,
20 pub fn new(data: Vec<u8>) -> Self { in new()
35 pub fn get_mut(&mut self) -> &mut Vec<u8> { in get_mut() argument
40 pub fn get_ref(&self) -> &Vec<u8> { in get_ref() argument
45 pub fn read_u8(&mut self) -> Result<u8, SystemError> { in read_u8() argument
101 pub fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), SystemError> { in read_exact()
157 pub fn write_u8(&mut self, value: u8) -> Result<u8, SystemError> { in write_u8() argument
174 self.data[self.pos] = (value & 0xff) as u8; in write_u16()
176 self.data[self.pos] = ((value >> 8) & 0xff) as u8; in write_u16()
189 self.data[self.pos] = ((value >> (i * 8)) & 0xff) as u8; in write_u32()
203 self.data[self.pos] = ((value >> (i * 8)) & 0xff) as u8; in write_u64()
216 pub fn write_exact(&mut self, buf: &[u8]) -> Result<(), SystemError> { in write_exact()
228 pub fn as_slice(&self) -> &[u8] { in as_slice() argument
233 pub fn as_mut_slice(&mut self) -> &mut [u8] { in as_mut_slice() argument