Lines Matching refs:u8
16 data: Vec<u8>,
23 pub fn new(data: Vec<u8>) -> Self { in new()
38 pub fn get_mut(&mut self) -> &mut Vec<u8> { in get_mut() argument
43 pub fn get_ref(&self) -> &Vec<u8> { in get_ref() argument
48 pub fn read_u8(&mut self) -> Result<u8, i32> { in read_u8() argument
104 pub fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), i32> { in read_exact()
160 pub fn write_u8(&mut self, value: u8) -> Result<u8, i32> { in write_u8() argument
177 self.data[self.pos] = (value & 0xff) as u8; in write_u16()
179 self.data[self.pos] = ((value >> 8) & 0xff) as u8; in write_u16()
192 self.data[self.pos] = ((value >> (i * 8)) & 0xff) as u8; in write_u32()
206 self.data[self.pos] = ((value >> (i * 8)) & 0xff) as u8; in write_u64()
219 pub fn write_exact(&mut self, buf: &[u8]) -> Result<(), i32> { in write_exact()
231 pub fn as_slice(&self) -> &[u8] { in as_slice() argument
236 pub fn as_mut_slice(&mut self) -> &mut [u8] { in as_mut_slice() argument