C# Class GitSharp.Core.AbbreviatedObjectId

Mostra file Open project: jagregory/GitSharp Class Usage Examples

Public Methods

Method Description
AbbreviatedObjectId ( int nibbles, int w1, int w2, int w3, int w4, int w5 ) : System
Equals ( object o ) : bool
FromString ( byte buf, int offset, int end ) : AbbreviatedObjectId

Convert an AbbreviatedObjectId from hex characters (US-ASCII).

FromString ( string str ) : AbbreviatedObjectId

Convert an AbbreviatedObjectId from hex characters.

GetHashCode ( ) : int
Mask ( int nibbles, int word, int v ) : int
ToObjectId ( ) : ObjectId

ToString ( ) : string
isComplete ( ) : bool

name ( ) : string

prefixCompare ( AnyObjectId other ) : int

Compares this abbreviation to a full object id.

Private Methods

Method Description
FromHexString ( byte bs, int ptr, int end ) : AbbreviatedObjectId
mask ( int word, int v ) : int

Method Details

AbbreviatedObjectId() public method

public AbbreviatedObjectId ( int nibbles, int w1, int w2, int w3, int w4, int w5 ) : System
nibbles int
w1 int
w2 int
w3 int
w4 int
w5 int
return System

Equals() public method

public Equals ( object o ) : bool
o object
return bool

FromString() public static method

Convert an AbbreviatedObjectId from hex characters (US-ASCII).
public static FromString ( byte buf, int offset, int end ) : AbbreviatedObjectId
buf byte the US-ASCII buffer to read from.
offset int position to read the first character from.
end int /// one past the last position to read (end-offset is /// the Length of the string). ///
return AbbreviatedObjectId

FromString() public static method

Convert an AbbreviatedObjectId from hex characters.
public static FromString ( string str ) : AbbreviatedObjectId
str string /// the string to read from. Must be <= 40 characters. ///
return AbbreviatedObjectId

GetHashCode() public method

public GetHashCode ( ) : int
return int

Mask() public static method

public static Mask ( int nibbles, int word, int v ) : int
nibbles int
word int
v int
return int

ToObjectId() public method

public ToObjectId ( ) : ObjectId
return ObjectId

ToString() public method

public ToString ( ) : string
return string

isComplete() public method

public isComplete ( ) : bool
return bool

name() public method

public name ( ) : string
return string

prefixCompare() public method

Compares this abbreviation to a full object id.
public prefixCompare ( AnyObjectId other ) : int
other AnyObjectId the other object id.
return int