pub fn read_window_header<R: Read>(
source: &mut R,
win_start_pos: u64,
) -> Result<WindowSummary>
Expand description
Reads the window header from the VCDIFF patch file. To avoid the Seek trait we require the caller to tell us the current position of the reader. This way the caller can know that the reader can only read exactly the window header.
ยงArguments
source
- The reader to read the window header from. Must be already positioned at the start of the window header.win_start_pos
- The byte offset from the start of the patch file where the window starts.