Gitility.ByteRange (Gitility v0.2.0)

Copy Markdown View Source

A byte range within one stored artifact, addressed by its storage key (a pack_key/index_key from a Gitility.PackDescriptor).

Gitility.ODB.RangeBackend.read_ranges/2 receives coalesced lists of these and returns a map of range → bytes. A short read is a backend error, never silently padded.

Summary

Types

t()

@type t() :: %Gitility.ByteRange{
  key: binary(),
  length: non_neg_integer(),
  offset: non_neg_integer()
}