C# Class GitSharp.Core.Transport.PackedObjectInfo

Description of an object stored in a pack file, including offset.

When objects are stored in packs Git needs the ObjectId and the offset (starting position of the object data) to perform random-access reads of objects from the pack. This extension of ObjectId includes the offset.

Inheritance: ObjectId
显示文件 Open project: stschake/GitSharp Class Usage Examples

Public Methods

Method Description
PackedObjectInfo ( AnyObjectId id )

Create a new structure to remember information about an object.

PackedObjectInfo ( long headerOffset, int packedCRC, AnyObjectId id )

Method Details

PackedObjectInfo() public method

Create a new structure to remember information about an object.
public PackedObjectInfo ( AnyObjectId id )
id AnyObjectId /// The identity of the object the new instance tracks. ///

PackedObjectInfo() public method

public PackedObjectInfo ( long headerOffset, int packedCRC, AnyObjectId id )
headerOffset long
packedCRC int
id AnyObjectId