Lines Matching refs:value
157 pub fn write_u8(&mut self, value: u8) -> Result<u8, SystemError> { in write_u8()
162 self.data[self.pos] = value; in write_u8()
165 return Ok(value); in write_u8()
169 pub fn write_u16(&mut self, value: u16) -> Result<u16, SystemError> { in write_u16()
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()
179 return Ok(value); in write_u16()
183 pub fn write_u32(&mut self, value: u32) -> Result<u32, SystemError> { in write_u32()
189 self.data[self.pos] = ((value >> (i * 8)) & 0xff) as u8; in write_u32()
193 return Ok(value); in write_u32()
197 pub fn write_u64(&mut self, value: u64) -> Result<u64, SystemError> { in write_u64()
203 self.data[self.pos] = ((value >> (i * 8)) & 0xff) as u8; in write_u64()
207 return Ok(value); in write_u64()