Struct write_journal::Transaction
source · pub struct Transaction { /* private fields */ }
Implementations§
source§impl Transaction
impl Transaction
pub fn write(&mut self, offset: u64, data: Vec<u8>) -> &mut Self
sourcepub fn write_with_overlay(&mut self, offset: u64, data: Vec<u8>) -> &mut Self
pub fn write_with_overlay(&mut self, offset: u64, data: Vec<u8>) -> &mut Self
WARNING: Use this function with caution, it’s up to the caller to avoid the potential issues with misuse, including logic incorrectness, cache incoherency, and memory leaking. Carefully read notes/Flow.md before using the overlay.