C# Class GitSharp.Core.ObjectChecker

Verifies that an object is formatted correctly. Verifications made by this class only check that the fields of an object are formatted correctly. The ObjectId checksum of the object is not verified, and connectivity links between objects are also not verified. Its assumed that the caller can provide both of these validations on its own. Instances of this class are not thread safe, but they may be reused to perform multiple object validations.
Afficher le fichier Open project: nestalk/GitSharp Class Usage Examples

Méthodes publiques

Свойство Type Description
@object byte[]
author byte[]
committer byte[]
encoding byte[]
parent byte[]
tag byte[]
tagger byte[]
tree byte[]
type byte[]

Méthodes publiques

Méthode Description
check ( int objType, byte raw ) : void

Check an object for parsing errors.

checkBlob ( byte raw ) : void

Check a blob for errors.

checkCommit ( byte raw ) : void

Check a commit for errors.

checkTag ( byte raw ) : void

Check an annotated tag for errors.

checkTree ( byte raw ) : void

Check a canonical formatted tree for errors.

Private Methods

Méthode Description
duplicateName ( byte raw, int thisNamePos, int thisNameEnd ) : bool
id ( byte raw, int ptr ) : int
lastPathChar ( int mode ) : int
pathCompare ( byte raw, int aPos, int aEnd, int aMode, int bPos, int bEnd, int bMode ) : int
personIdent ( byte raw, int ptr ) : int

Method Details

check() public méthode

Check an object for parsing errors.
If any error is identified.
public check ( int objType, byte raw ) : void
objType int /// Type of the object. Must be a valid object type code in /// .
raw byte /// The raw data which comprises the object. This should be in the /// canonical format (that is the format used to generate the /// of the object). The array is never modified. ///
Résultat void

checkBlob() public méthode

Check a blob for errors.
If any error was detected.
public checkBlob ( byte raw ) : void
raw byte The blob data. The array is never modified.
Résultat void

checkCommit() public méthode

Check a commit for errors.
If any error was detected.
public checkCommit ( byte raw ) : void
raw byte The commit data. The array is never modified.
Résultat void

checkTag() public méthode

Check an annotated tag for errors.
If any error was detected.
public checkTag ( byte raw ) : void
raw byte The tag data. The array is never modified.
Résultat void

checkTree() public méthode

Check a canonical formatted tree for errors.
If any error was detected.
public checkTree ( byte raw ) : void
raw byte The raw tree data. The array is never modified.
Résultat void

Property Details

@object public_oe static_oe property

public static byte[] @object
Résultat byte[]

author public_oe static_oe property

public static byte[] author
Résultat byte[]

committer public_oe static_oe property

public static byte[] committer
Résultat byte[]

encoding public_oe static_oe property

public static byte[] encoding
Résultat byte[]

parent public_oe static_oe property

public static byte[] parent
Résultat byte[]

tag public_oe static_oe property

public static byte[] tag
Résultat byte[]

tagger public_oe static_oe property

public static byte[] tagger
Résultat byte[]

tree public_oe static_oe property

public static byte[] tree
Résultat byte[]

type public_oe static_oe property

public static byte[] type
Résultat byte[]