Function gix_index::extension::end_of_index_entry::write_to
source · pub fn write_to(
out: impl Write,
hash_kind: Kind,
offset_to_extensions: u32,
prior_extensions: impl IntoIterator<Item = (Signature, u32)>
) -> Result<(), Error>
Expand description
Write this extension to out and generate a hash of hash_kind
over all prior_extensions
which are specified as (signature, size)
pair. one_past_entries
is the offset to the first byte past the entries, which is also the first byte of the signature of the
first extension in prior_extensions
. Note that prior_extensions
must have been written prior to this one, as the name suggests,
allowing this extension to be the last one in the index file.
Even if there are no prior_extensions
, this extension will be written unconditionally.