C# Class GitSharp.Core.UnpackedObjectLoader

Loose object loader. This class loads an object not stored in a pack.
Inheritance: GitSharp.Core.ObjectLoader
Show file Open project: jagregory/GitSharp

Public Methods

Method Description
UnpackedObjectLoader ( FileSystemInfo path, AnyObjectId id ) : System

Construct an ObjectLoader to read from the file.

UnpackedObjectLoader ( byte compressed ) : System

Construct an ObjectLoader from a loose object's compressed form.

Private Methods

Method Description
Decompress ( AnyObjectId id, Inflater inf, int p ) : void
ReadCompressed ( FileSystemInfo path ) : byte[]
UnpackedObjectLoader ( byte compressed, AnyObjectId id ) : System

Method Details

UnpackedObjectLoader() public method

Construct an ObjectLoader to read from the file.
/// The loose object file does not exist. /// /// The loose object file exists, but is corrupt. ///
public UnpackedObjectLoader ( FileSystemInfo path, AnyObjectId id ) : System
path System.IO.FileSystemInfo location of the loose object to read.
id AnyObjectId Expected identity of the object being loaded, if known.
return System

UnpackedObjectLoader() public method

Construct an ObjectLoader from a loose object's compressed form.
/// The compressed data supplied does not match the format for a /// valid loose object. ///
public UnpackedObjectLoader ( byte compressed ) : System
compressed byte /// Entire content of the loose object file. ///
return System