Read the payload and return a full WalRecord.
(&mut self, header: &RecordHeader)
| 138 | |
| 139 | /// Read the payload and return a full WalRecord. |
| 140 | pub fn read_record(&mut self, header: &RecordHeader) -> Result<WalRecord> { |
| 141 | let payload = self.read_payload(header)?; |
| 142 | Ok(WalRecord { |
| 143 | header: *header, |
| 144 | payload, |
| 145 | }) |
| 146 | } |
| 147 | |
| 148 | /// Skip the payload for a header, seeking forward without reading. |
| 149 | /// |
nothing calls this directly
no test coverage detected