Byte offset of slot `idx` within the DWB file.
(idx: u32)
| 125 | |
| 126 | /// Byte offset of slot `idx` within the DWB file. |
| 127 | fn slot_offset(idx: u32) -> u64 { |
| 128 | DWB_HEADER_STRIDE as u64 + (idx as u64 % DWB_CAPACITY as u64) * DWB_SLOT_STRIDE as u64 |
| 129 | } |
| 130 | |
| 131 | /// Double-write buffer file. |
| 132 | pub struct DoubleWriteBuffer { |
no outgoing calls
no test coverage detected