C# Class NGit.Patch.HunkHeader

Hunk header describing the layout of a single block of lines
Show file Open project: red-gate/ngit Class Usage Examples

Public Methods

Method Description
GetBuffer ( ) : byte[]
GetEndOffset ( ) : int
GetFileHeader ( ) : NGit.Patch.FileHeader
GetLinesContext ( ) : int
GetNewLineCount ( ) : int
GetNewStartLine ( ) : int
GetOldImage ( ) : HunkHeader.OldImage
GetStartOffset ( ) : int
ToEditList ( ) : EditList
ToString ( ) : string

Private Methods

Method Description
CopyLine ( StringBuilder sb, string text, int offsets, int fileIdx ) : void
ExtractFileLines ( OutputStream @out ) : void
ExtractFileLines ( StringBuilder sb, string text, int offsets ) : void
HunkHeader ( NGit.Patch.FileHeader fh, EditList editList ) : System.Text
HunkHeader ( NGit.Patch.FileHeader fh, int offset ) : System.Text
HunkHeader ( NGit.Patch.FileHeader fh, int offset, HunkHeader oi ) : System.Text
ParseBody ( NGit script, int end ) : int
ParseHeader ( ) : void
SkipLine ( string text, int offsets, int fileIdx ) : void

Method Details

GetBuffer() public method

public GetBuffer ( ) : byte[]
return byte[]

GetEndOffset() public method

public GetEndOffset ( ) : int
return int

GetFileHeader() public method

public GetFileHeader ( ) : NGit.Patch.FileHeader
return NGit.Patch.FileHeader

GetLinesContext() public method

public GetLinesContext ( ) : int
return int

GetNewLineCount() public method

public GetNewLineCount ( ) : int
return int

GetNewStartLine() public method

public GetNewStartLine ( ) : int
return int

GetOldImage() public method

public GetOldImage ( ) : HunkHeader.OldImage
return HunkHeader.OldImage

GetStartOffset() public method

public GetStartOffset ( ) : int
return int

ToEditList() public method

public ToEditList ( ) : EditList
return EditList

ToString() public method

public ToString ( ) : string
return string