메소드 | 설명 | |
---|---|---|
AddError ( NGit.Patch.FormatError err ) : void |
Add a formatting error to this patch script. Add a formatting error to this patch script. |
|
AddFile ( NGit.Patch.FileHeader fh ) : void |
Add a single file to this patch. Add a single file to this patch. Typically files should be added by parsing the text through one of this class's parse methods. |
|
GetErrors ( ) : IList |
||
GetFiles ( ) : IList |
||
Parse ( |
Parse a patch received from an InputStream. Parse a patch received from an InputStream. Multiple parse calls on the same instance will concatenate the patch data, but each parse input must start with a valid file header (don't split a single file across parse calls). |
|
Parse ( byte buf, int ptr, int end ) : void |
Parse a patch stored in a byte[]. Parse a patch stored in a byte[]. Multiple parse calls on the same instance will concatenate the patch data, but each parse input must start with a valid file header (don't split a single file across parse calls). |
|
Patch ( ) : System.Collections.Generic |
Create an empty patch. Create an empty patch. |
메소드 | 설명 | |
---|---|---|
Error ( byte buf, int ptr, string msg ) : void | ||
MatchAny ( byte buf, int c, byte srcs ) : bool | ||
ParseDiffCombined ( byte hdr, byte buf, int start, int end ) : int | ||
ParseDiffGit ( byte buf, int start, int end ) : int | ||
ParseFile ( byte buf, int c, int end ) : int | ||
ParseGitBinary ( NGit.Patch.FileHeader fh, int c, int end ) : int | ||
ParseHunks ( NGit.Patch.FileHeader fh, int c, int end ) : int | ||
ParseTraditionalPatch ( byte buf, int start, int end ) : int | ||
ReadFully ( |
||
SkipFile ( byte buf, int ptr ) : int | ||
Warn ( byte buf, int ptr, string msg ) : void |
public AddError ( NGit.Patch.FormatError err ) : void | ||
err | NGit.Patch.FormatError | the error description. |
리턴 | void |
public AddFile ( NGit.Patch.FileHeader fh ) : void | ||
fh | NGit.Patch.FileHeader | the header of the file. |
리턴 | void |
public Parse ( byte buf, int ptr, int end ) : void | ||
buf | byte | the buffer to parse. |
ptr | int | starting position to parse from. |
end | int |
/// 1 past the last position to end parsing. The total length to
/// be parsed is end - ptr .
/// |
리턴 | void |