Struct git_chunk::file::Index [−][src]
Expand description
A chunk file providing a table into the parent data.
Fields
chunks: Vec<Entry>
Validated chunks as defined by their index entries.
Note that this list cannot be empty.
Implementations
The size of a single index entry in bytes
The smallest possible size of an index, consisting only of the sentinel value pointing past itself.
Find a chunk of kind
and return its offset into the data if found
Find a chunk of kind
and return its data slice based on its offset.
Return the end offset lf the last chunk, which is the highest offset as well. It’s definitely available as we have one or more chunks.