(&mut self, buf: &mut [u8])
| 157 | } |
| 158 | |
| 159 | fn read_exact(&mut self, buf: &mut [u8]) -> Result<()> { |
| 160 | self.file.read_exact(buf)?; |
| 161 | self.offset += buf.len() as u64; |
| 162 | Ok(()) |
| 163 | } |
| 164 | } |
| 165 | |
| 166 | /// Attempt to read a WAL segment preamble from the start of a file. |