Crate vcdiff_common

Source

Structs§

ADD
Decoded ADD instruction
COPY
Decoded COPY instruction
Cache
Currently this is only a static implementation of the cache. We cannot handle different S_NEAR or S_SAME parameters.
CodeTableData
Encapsulates the code table data found in the VCDIFF patch header.
CodeTableEntry
DeltaIndicator
Header
RUN
Inlined of Decoded RUN instruction
WindowSummary
Represents a summary of a window in a VCDIFF patch, including the positions of different sections within the window.

Enums§

CopyType
Inst
Basic instruction
InstType
TableInst
WinIndicator

Constants§

MAGIC
VCD_C_TABLE

Traits§

Instruction

Functions§

decode_integer
encode_integer
Encodes a u64 value into a variable-length base 128 integer per RFC 3284. The value is written to the provided sink.
generate_default_code_table
integer_encoded_size
The length of the give value when encoded as a base 128 integer per RFC 3284.
sum_len_in_o
Length in the output stream that the list of instructions will produce.