C# Class dnSpy.Contracts.Hex.HexBufferLine

Line information
Mostra file Open project: 0xd4d/dnSpy Class Usage Examples

Public Methods

Method Description
GetAsciiSpan ( bool onlyVisibleCells ) : Microsoft.VisualStudio.Text.Span

Gets the span of the ASCII column. This can be an empty span if the ASCII column isn't shown.

GetAsciiSpans ( HexBufferSpan span, HexSpanSelectionFlags flags ) : IEnumerable

Gets ASCII spans

GetAsciiSpans ( HexBufferSpanSelection span ) : IEnumerable

Gets ASCII spans

GetClosestCellPosition ( HexLinePositionInfo position, bool onlyVisibleCells ) : HexCellPosition?

Gets the closest cell position

GetClosestCellPosition ( int linePosition, bool onlyVisibleCells ) : HexCellPosition?

Gets the closest cell position

GetLinePosition ( HexCellPosition position ) : int?

Gets a text line position or null

GetLinePositionInfo ( int linePosition ) : HexLinePositionInfo

Creates a HexLinePositionInfo

GetOffsetSpan ( ) : Microsoft.VisualStudio.Text.Span

Gets the span of the offset in Text. This can be an empty span if the offset column isn't shown.

GetSpan ( HexColumnType column, bool onlyVisibleCells ) : Microsoft.VisualStudio.Text.Span

Gets the span of a column

GetSpans ( HexBufferSpan span, HexSpanSelectionFlags flags ) : IEnumerable

Gets column spans in column order

GetSpans ( HexBufferSpanSelection span ) : IEnumerable

Gets column spans in column order

GetText ( HexBufferSpan visibleBytes ) : string

Gets the text. All cells outside the input range are cleared.

GetValuesSpan ( bool onlyVisibleCells ) : Microsoft.VisualStudio.Text.Span

Gets the span of the values column

GetValuesSpans ( HexBufferSpan span, HexSpanSelectionFlags flags ) : IEnumerable

Gets values spans

GetValuesSpans ( HexBufferSpanSelection span ) : IEnumerable

Gets values spans

IsColumnPresent ( HexColumnType column ) : bool

Returns true if a column is present

ToString ( ) : string

Returns Text

Protected Methods

Method Description
ClearCells ( char chars, bool isColumnPresent, HexCellCollection cells, HexBufferSpan visibleBytes ) : void
HexBufferLine ( ) : System

Constructor

Private Methods

Method Description
Compare ( int linePosition, dnSpy.Contracts.Hex.HexCell a, dnSpy.Contracts.Hex.HexCell b ) : int
Create ( HexCellCollection collection, dnSpy.Contracts.Hex.HexCell first, dnSpy.Contracts.Hex.HexCell last, HexBufferSpan bufferSpan ) : dnSpy.Contracts.Hex.TextAndHexSpan
GetCells ( ) : HexCell>>.IEnumerable
GetClosestCellPosition ( int linePosition ) : HexLinePositionInfo?
GetLength ( int linePosition, HexCell a ) : int
GetTextAndHexSpans ( bool isColumnPresent, HexCellCollection collection, HexBufferSpan span, HexSpanSelectionFlags flags, Microsoft.VisualStudio.Text visibleSpan, Microsoft.VisualStudio.Text fullSpan ) : IEnumerable
GetVisible ( HexCellCollection collection, HexCell cell ) : int>?.KeyValuePair

Method Details

ClearCells() protected method

protected ClearCells ( char chars, bool isColumnPresent, HexCellCollection cells, HexBufferSpan visibleBytes ) : void
chars char
isColumnPresent bool
cells HexCellCollection
visibleBytes HexBufferSpan
return void

GetAsciiSpan() public abstract method

Gets the span of the ASCII column. This can be an empty span if the ASCII column isn't shown.
public abstract GetAsciiSpan ( bool onlyVisibleCells ) : Microsoft.VisualStudio.Text.Span
onlyVisibleCells bool true to only include visible characters, false to include the full column
return Microsoft.VisualStudio.Text.Span

GetAsciiSpans() public method

Gets ASCII spans
public GetAsciiSpans ( HexBufferSpan span, HexSpanSelectionFlags flags ) : IEnumerable
span HexBufferSpan Buffer span
flags HexSpanSelectionFlags Flags
return IEnumerable

GetAsciiSpans() public method

Gets ASCII spans
public GetAsciiSpans ( HexBufferSpanSelection span ) : IEnumerable
span HexBufferSpanSelection Span and selection flags
return IEnumerable

GetClosestCellPosition() public method

Gets the closest cell position
public GetClosestCellPosition ( HexLinePositionInfo position, bool onlyVisibleCells ) : HexCellPosition?
position HexLinePositionInfo Position
onlyVisibleCells bool true to only return cells with data
return HexCellPosition?

GetClosestCellPosition() public method

Gets the closest cell position
public GetClosestCellPosition ( int linePosition, bool onlyVisibleCells ) : HexCellPosition?
linePosition int Line position
onlyVisibleCells bool true to only return cells with data
return HexCellPosition?

GetLinePosition() public method

Gets a text line position or null
public GetLinePosition ( HexCellPosition position ) : int?
position HexCellPosition Position
return int?

GetLinePositionInfo() public method

Creates a HexLinePositionInfo
public GetLinePositionInfo ( int linePosition ) : HexLinePositionInfo
linePosition int Line position
return HexLinePositionInfo

GetOffsetSpan() public abstract method

Gets the span of the offset in Text. This can be an empty span if the offset column isn't shown.
public abstract GetOffsetSpan ( ) : Microsoft.VisualStudio.Text.Span
return Microsoft.VisualStudio.Text.Span

GetSpan() public method

Gets the span of a column
public GetSpan ( HexColumnType column, bool onlyVisibleCells ) : Microsoft.VisualStudio.Text.Span
column HexColumnType Colum
onlyVisibleCells bool true to only include visible values, false to include the full column
return Microsoft.VisualStudio.Text.Span

GetSpans() public method

Gets column spans in column order
public GetSpans ( HexBufferSpan span, HexSpanSelectionFlags flags ) : IEnumerable
span HexBufferSpan Buffer span
flags HexSpanSelectionFlags Flags
return IEnumerable

GetSpans() public method

Gets column spans in column order
public GetSpans ( HexBufferSpanSelection span ) : IEnumerable
span HexBufferSpanSelection Span and selection flags
return IEnumerable

GetText() public method

Gets the text. All cells outside the input range are cleared.
public GetText ( HexBufferSpan visibleBytes ) : string
visibleBytes HexBufferSpan Visible bytes
return string

GetValuesSpan() public abstract method

Gets the span of the values column
public abstract GetValuesSpan ( bool onlyVisibleCells ) : Microsoft.VisualStudio.Text.Span
onlyVisibleCells bool true to only include visible values, false to include the full column
return Microsoft.VisualStudio.Text.Span

GetValuesSpans() public method

Gets values spans
public GetValuesSpans ( HexBufferSpan span, HexSpanSelectionFlags flags ) : IEnumerable
span HexBufferSpan Buffer span
flags HexSpanSelectionFlags Flags
return IEnumerable

GetValuesSpans() public method

Gets values spans
public GetValuesSpans ( HexBufferSpanSelection span ) : IEnumerable
span HexBufferSpanSelection Span and selection flags
return IEnumerable

HexBufferLine() protected method

Constructor
protected HexBufferLine ( ) : System
return System

IsColumnPresent() public method

Returns true if a column is present
public IsColumnPresent ( HexColumnType column ) : bool
column HexColumnType Column
return bool

ToString() public method

Returns Text
public ToString ( ) : string
return string