Module git_odb::pack::data[][src]

a pack data file

Modules

decode_entry
entry
header
input
output

Utilities to encode pack data entries and write them to a Write implementation to resemble a pack data file.

verify

Structs

BytesToEntriesIter

An iterator over Entries in a byte stream.

EntriesToBytesIter

An implementation of Iterator to write encoded entries to an inner implementation each time next() is called.

Entry

An representing an full- or delta-object within a pack

File

A pack data file

Enums

ResolvedBase

A return value of a resolve function, which given an ObjectId determines where an object can be found.

Version

Supported versions of a pack data file

Functions

objects_to_entries_iter

Write all objects into out without attempting to apply any delta compression. This allows objects to be written rather immediately. Objects are held in memory and compressed using DEFLATE, with those in-flight chunks of compressed objects being sent to the current thread for writing. No buffering of these objects is performed, allowing for natural back-pressure in case of slow writers.

Type Definitions

EntryRange

A slice into a pack file denoting a pack entry.