(&mut self)
| 38 | } |
| 39 | |
| 40 | pub fn int32(&mut self) -> Result<i32> { |
| 41 | let bytes = self.take_slice(4)?; |
| 42 | Ok(i32::from_be_bytes([bytes[0], bytes[1], bytes[2], bytes[3]])) |
| 43 | } |
| 44 | |
| 45 | pub fn string(&mut self, length: usize) -> Result<String> { |
| 46 | let bytes = self.take_slice(length)?; |
no test coverage detected