Skip to main content

compare_complete_bitwise_info_v1_prefix

Function compare_complete_bitwise_info_v1_prefix 

Source
pub fn compare_complete_bitwise_info_v1_prefix(
    bytes_a: &[u8],
    bytes_b: &[u8],
    side_labels: ComparisonSideLabels,
    diagnostics: BitwiseInfoV1Diagnostics,
    w: &mut impl Write,
) -> Result<PrefixComparison>
Expand description

Compare the complete common prefix of two growing logs under the fixed BitwiseInfoV1 policy.

The whole byte buffers must be valid UTF-8, and a terminal bounded-writer marker refuses immediately even though it is not a timestamped record. Structured-record validation covers every complete record currently available on each side, while the verdict compares only the common complete prefix. The unfinished final record remains withheld until a later record proves that it is complete.