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.
Datei anzeigen Open project: nestalk/GitSharp Class Usage Examples

Public Properties

Property Type Description
@object byte[]
author byte[]
committer byte[]
encoding byte[]
parent byte[]
tag byte[]
tagger byte[]
tree byte[]
type byte[]

Public Methods

Method 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

Method 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 method

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. ///
return void

checkBlob() public method

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.
return void

checkCommit() public method

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.
return void

checkTag() public method

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.
return void

checkTree() public method

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.
return void

Property Details

@object public_oe static_oe property

public static byte[] @object
return byte[]

author public_oe static_oe property

public static byte[] author
return byte[]

committer public_oe static_oe property

public static byte[] committer
return byte[]

encoding public_oe static_oe property

public static byte[] encoding
return byte[]

parent public_oe static_oe property

public static byte[] parent
return byte[]

tag public_oe static_oe property

public static byte[] tag
return byte[]

tagger public_oe static_oe property

public static byte[] tagger
return byte[]

tree public_oe static_oe property

public static byte[] tree
return byte[]

type public_oe static_oe property

public static byte[] type
return byte[]