C# Класс 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.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
@object byte[]
author byte[]
committer byte[]
encoding byte[]
parent byte[]
tag byte[]
tagger byte[]
tree byte[]
type byte[]

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

check() публичный Метод

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. ///
Результат void

checkBlob() публичный Метод

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.
Результат void

checkCommit() публичный Метод

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.
Результат void

checkTag() публичный Метод

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.
Результат void

checkTree() публичный Метод

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.
Результат void

Описание свойств

@object публичное статическое свойство

public static byte[] @object
Результат byte[]

author публичное статическое свойство

public static byte[] author
Результат byte[]

committer публичное статическое свойство

public static byte[] committer
Результат byte[]

encoding публичное статическое свойство

public static byte[] encoding
Результат byte[]

parent публичное статическое свойство

public static byte[] parent
Результат byte[]

tag публичное статическое свойство

public static byte[] tag
Результат byte[]

tagger публичное статическое свойство

public static byte[] tagger
Результат byte[]

tree публичное статическое свойство

public static byte[] tree
Результат byte[]

type публичное статическое свойство

public static byte[] type
Результат byte[]