Lines Matching refs:u8
14 data: Vec<u8>,
21 pub fn new(data: Vec<u8>) -> Self { in new()
36 pub fn get_mut(&mut self) -> &mut Vec<u8> { in get_mut() argument
41 pub fn get_ref(&self) -> &Vec<u8> { in get_ref() argument
46 pub fn read_u8(&mut self) -> Result<u8, SystemError> { in read_u8() argument
102 pub fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), SystemError> { in read_exact()
151 pub fn write_u8(&mut self, value: u8) -> Result<u8, SystemError> { in write_u8() argument
168 self.data[self.pos] = (value & 0xff) as u8; in write_u16()
170 self.data[self.pos] = ((value >> 8) & 0xff) as u8; in write_u16()
183 self.data[self.pos] = ((value >> (i * 8)) & 0xff) as u8; in write_u32()
197 self.data[self.pos] = ((value >> (i * 8)) & 0xff) as u8; in write_u64()
210 pub fn write_exact(&mut self, buf: &[u8]) -> Result<(), SystemError> { in write_exact()
222 pub fn as_slice(&self) -> &[u8] { in as_slice() argument
227 pub fn as_mut_slice(&mut self) -> &mut [u8] { in as_mut_slice() argument