pub fn gen_sum_code_v0(
path: &Path,
bits: u32,
wide: bool,
add_units: bool,
) -> IsccResult<SumCodeResult>Expand description
Generate a composite ISCC-CODE from a file in a single pass.
Opens the file at path, reads it with an optimal buffer size, and feeds
both DataHasher (CDC/MinHash) and InstanceHasher (BLAKE3) from the
same read buffer. Composes the final ISCC-CODE from the Data-Code and
Instance-Code internally. This avoids multiple passes over the file and
eliminates per-chunk FFI overhead in language bindings.
When add_units is true, the result includes the individual Data-Code
and Instance-Code ISCC strings at the requested bits precision.