C# Class Git.Core.SHA1

Struct that represent a SHA1 hash
Mostra file Open project: igorgue/git-sharp Class Usage Examples

Public Methods

Method Description
Equals ( SHA1 o ) : bool
GetGitFileName ( ) : string
GetHashCode ( ) : int
SHA1 ( byte data, bool calculateHash ) : System
ToBytes ( string hex ) : byte[]
ToHexString ( ) : string
ToHexString ( int start, int size ) : string

Convert a Byte array to Hexadecimal format

Private Methods

Method Description
ComputeSHA1Hash ( byte bytes ) : byte[]

Compute the byte array to a SHA1 hash

ToByte ( char c ) : byte

Method Details

Equals() public method

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

GetGitFileName() public method

public GetGitFileName ( ) : string
return string

GetHashCode() public method

public GetHashCode ( ) : int
return int

SHA1() public method

public SHA1 ( byte data, bool calculateHash ) : System
data byte
calculateHash bool
return System

ToBytes() public static method

public static ToBytes ( string hex ) : byte[]
hex string
return byte[]

ToHexString() public method

public ToHexString ( ) : string
return string

ToHexString() public method

Convert a Byte array to Hexadecimal format
public ToHexString ( int start, int size ) : string
start int
size int
return string