C# Class GitSharp.Core.ObjectId

Inheritance: AnyObjectId
Show file Open project: stschake/GitSharp Class Usage Examples

Public Methods

Method Description
Equals ( byte firstBuffer, int fi, byte secondBuffer, int si ) : bool

Compare to object identifier byte sequences for equality.

FromHexString ( byte bs, int p ) : ObjectId
FromRaw ( byte buffer ) : ObjectId
FromRaw ( byte buffer, int offset ) : ObjectId
FromRaw ( int intbuffer ) : ObjectId
FromRaw ( int intbuffer, int offset ) : ObjectId
FromString ( byte bs, int offset ) : ObjectId

Convert an ObjectId from raw binary representation.

FromString ( string str ) : ObjectId

Convert an ObjectId from raw binary representation.

IsId ( string id ) : bool

Test a string of characters to verify it is a hex format. If true the string can be parsed with FromString(string).

ObjectId ( AnyObjectId src ) : System
ToObjectId ( ) : ObjectId
ToString ( ObjectId i ) : string

Convert an ObjectId into a hex string representation.

Private Methods

Method Description
ObjectId ( ) : System
ObjectId ( int w1, int w2, int w3, int w4, int w5 ) : System

Method Details

Equals() public static method

Compare to object identifier byte sequences for equality.
public static Equals ( byte firstBuffer, int fi, byte secondBuffer, int si ) : bool
firstBuffer byte /// the first buffer to compare against. Must have at least 20 /// bytes from position ai through the end of the buffer. ///
fi int /// first offset within firstBuffer to begin testing. ///
secondBuffer byte /// the second buffer to compare against. Must have at least 2 /// bytes from position bi through the end of the buffer. ///
si int /// first offset within secondBuffer to begin testing. ///
return bool

FromHexString() public static method

public static FromHexString ( byte bs, int p ) : ObjectId
bs byte
p int
return ObjectId

FromRaw() public static method

public static FromRaw ( byte buffer ) : ObjectId
buffer byte
return ObjectId

FromRaw() public static method

public static FromRaw ( byte buffer, int offset ) : ObjectId
buffer byte
offset int
return ObjectId

FromRaw() public static method

public static FromRaw ( int intbuffer ) : ObjectId
intbuffer int
return ObjectId

FromRaw() public static method

public static FromRaw ( int intbuffer, int offset ) : ObjectId
intbuffer int
offset int
return ObjectId

FromString() public static method

Convert an ObjectId from raw binary representation.
public static FromString ( byte bs, int offset ) : ObjectId
bs byte /// The raw byte buffer to read from. At least 20 bytes after /// must be available within this byte array. ///
offset int /// Position to read the first byte of data from. ///
return ObjectId

FromString() public static method

Convert an ObjectId from raw binary representation.
public static FromString ( string str ) : ObjectId
str string /// The raw byte buffer to read from. At least 20 bytes must be /// available within this byte array. ///
return ObjectId

IsId() public static method

Test a string of characters to verify it is a hex format. If true the string can be parsed with FromString(string).
public static IsId ( string id ) : bool
id string the string to test.
return bool

ObjectId() public method

public ObjectId ( AnyObjectId src ) : System
src AnyObjectId
return System

ToObjectId() public method

public ToObjectId ( ) : ObjectId
return ObjectId

ToString() public static method

Convert an ObjectId into a hex string representation.
public static ToString ( ObjectId i ) : string
i ObjectId The id to convert. May be null.
return string