Method | Description | |
---|---|---|
CreateObjectHeader ( |
Create a header for a Git hash
|
|
DecodeObject ( byte content ) : Object | ||
Object ( |
||
StringToType ( string type ) : |
||
TypeToString ( |
Convert a type to its string representation
|
Method | Description | |
---|---|---|
Decode ( ) : byte[] | ||
Encode ( byte data ) : void | ||
EncodeHeader ( |
||
EncodeHeader ( |
||
EncodeInteger ( |
||
EncodeNewLine ( |
||
EncodeSpace ( |
||
EncodeString ( |
||
EncodeTreeEntry ( |
||
EncodeZero ( |
||
ParseHeader ( byte input, int &pos, |
||
ParseInteger ( byte input, int &pos, int &integer ) : bool | ||
ParseNewLine ( byte input, int &pos ) : bool | ||
ParseNoSpaceString ( byte input, int &pos, string &str ) : bool | ||
ParseSpace ( byte input, int &pos ) : bool | ||
ParseString ( byte input, int &pos, string &str ) : bool | ||
ParseTreeEntry ( byte input, int &pos, byte &mode, string &name, byte &id ) : bool | ||
ParseType ( byte input, int &pos, |
||
ParseZero ( byte input, int &pos ) : bool |
public static CreateObjectHeader ( |
||
objType |
/// Type of the object to hash |
|
dataSize | string |
/// Size of the object to hash |
return | byte[] |
public static DecodeObject ( byte content ) : Object | ||
content | byte | |
return | Object |
protected abstract Encode ( byte data ) : void | ||
data | byte | |
return | void |
protected static EncodeHeader ( |
||
ms | ||
type | ||
length | string | |
return | void |
protected static EncodeHeader ( |
||
ms | ||
header | byte | |
return | void |
protected static EncodeInteger ( |
||
ms | ||
integer | int | |
return | void |
protected static EncodeNewLine ( |
||
ms | ||
return | void |
protected static EncodeSpace ( |
||
ms | ||
return | void |
protected static EncodeString ( |
||
ms | ||
str | string | |
return | void |
protected static EncodeTreeEntry ( |
||
ms | ||
mode | byte | |
name | string | |
id | byte | |
return | void |
protected static EncodeZero ( |
||
ms | ||
return | void |
public Object ( |
||
type | ||
content | byte | |
return | System |
protected static ParseHeader ( byte input, int &pos, |
||
input | byte | |
pos | int | |
type | ||
length | string | |
return | bool |
protected static ParseInteger ( byte input, int &pos, int &integer ) : bool | ||
input | byte | |
pos | int | |
integer | int | |
return | bool |
protected static ParseNewLine ( byte input, int &pos ) : bool | ||
input | byte | |
pos | int | |
return | bool |
protected static ParseNoSpaceString ( byte input, int &pos, string &str ) : bool | ||
input | byte | |
pos | int | |
str | string | |
return | bool |
protected static ParseSpace ( byte input, int &pos ) : bool | ||
input | byte | |
pos | int | |
return | bool |
protected static ParseString ( byte input, int &pos, string &str ) : bool | ||
input | byte | |
pos | int | |
str | string | |
return | bool |
protected static ParseTreeEntry ( byte input, int &pos, byte &mode, string &name, byte &id ) : bool | ||
input | byte | |
pos | int | |
mode | byte | |
name | string | |
id | byte | |
return | bool |
protected static ParseType ( byte input, int &pos, |
||
input | byte | |
pos | int | |
type | ||
return | bool |
protected static ParseZero ( byte input, int &pos ) : bool | ||
input | byte | |
pos | int | |
return | bool |
public static StringToType ( string type ) : |
||
type | string | |
return |
public static TypeToString ( |
||
type | ||
return | string |