pub fn patch_page_header(page: &[u8], new_seq: u32) -> Result<Vec<u8>>Expand description
Given the full bytes of one page, return just its header bytes (length
header_len) with the sequence number set to new_seq and the CRC recomputed
over the patched page. The payload is read (to recompute the CRC) but not
returned — callers splice it verbatim from the backing file.