# Functions
ApplyDelta writes to target the result of applying the modification deltas in delta to base.
DiffDelta returns the delta that transforms src into tgt.
GetDelta returns an EncodedObject of type OFSDeltaObject.
NewDecoder returns a new Decoder that decodes a Packfile using the given Scanner and stores the objects in the provided EncodedObjectStorer.
NewDecoderForType returns a new Decoder but in this case for a specific object type.
NewDecoderWithCache is a version of NewDecoder where cache can be specified.
NewEncoder creates a new packfile encoder using a specific Writer and EncodedObjectStorer.
NewError returns a new error.
NewIndex creates a new empty index with the given size.
NewIndexFromIdxFile creates a new Index from an idxfile.IdxFile.
NewScanner returns a new Scanner based on a reader, if the given reader implements io.ReadSeeker the Scanner will be also Seekable.
PatchDelta returns the result of applying the modification deltas in delta to src.
UpdateObjectStorage updates the given storer.EncodedObjectStorer with the contents of the packfile.
# Constants
Possible values of the Format type.
Possible values of the Format type.
Possible values of the Format type.
VersionSupported is the packfile version supported by this package.
# Variables
ErrAlreadyDecoded is returned if NewDecoder is called for a second time.
ErrBadSignature is returned by ReadHeader when the signature in the packfile is incorrect.
ErrCannotRecall is returned by RecallByOffset or RecallByHash if the object to recall cannot be returned.
No description provided by the author
ErrEmptyPackfile is returned by ReadHeader when no data is found in the packfile.
No description provided by the author
ErrInvalidObject is returned by Decode when an invalid object is found in the packfile.
ErrMaxObjectsLimitReached is returned by Decode when the number of objects in the packfile is higher than Decoder.MaxObjectsLimit.
ErrNonSeekable is returned if a ReadObjectAt method is called without a seekable scanner.
ErrPackEntryNotFound is returned by Decode when a reference in the packfile references and unknown object.
ErrResolveDeltasNotSupported is returned if a NewDecoder is used with a non-seekable scanner and without a plumbing.ObjectStorage.
ErrRollback error making Rollback over a transaction after an error.
ErrSeekNotSupported returned if seek is not support.
ErrUnsupportedVersion is returned by ReadHeader when the packfile version is different than VersionSupported.
ErrZLib is returned by Decode when there was an error unzipping the packfile contents.
No description provided by the author
# Structs
Decoder reads and decodes packfiles from an input Scanner, if an ObjectStorer was provided the decoded objects are store there.
Encoder gets the data from the storage and write it into the writer in PACK format.
Error specifies errors returned during packfile parsing.
Index is an in-memory representation of a packfile index.
ObjectHeader contains the information related to the object, this information is collected from the previous bytes to the content of the object.
ObjectToPack is a representation of an object that is going to be into a pack file.
No description provided by the author
# Type aliases
Format specifies if the packfile uses ref-deltas or ofs-deltas.