(&mut self, length: usize)
| 43 | } |
| 44 | |
| 45 | pub fn string(&mut self, length: usize) -> Result<String> { |
| 46 | let bytes = self.take_slice(length)?; |
| 47 | let text = std::str::from_utf8(bytes)?; |
| 48 | Ok(text.to_owned()) |
| 49 | } |
| 50 | |
| 51 | pub fn cstring(&mut self) -> Result<String> { |
| 52 | let start = self.offset; |
no test coverage detected