C# Class dnSpy.Contracts.Hex.HexBufferLine

Line information
Afficher le fichier Open project: 0xd4d/dnSpy Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

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

Constructor

Private Methods

Méthode 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 méthode

protected ClearCells ( char chars, bool isColumnPresent, HexCellCollection cells, HexBufferSpan visibleBytes ) : void
chars char
isColumnPresent bool
cells HexCellCollection
visibleBytes HexBufferSpan
Résultat void

GetAsciiSpan() public abstract méthode

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
Résultat Microsoft.VisualStudio.Text.Span

GetAsciiSpans() public méthode

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

GetAsciiSpans() public méthode

Gets ASCII spans
public GetAsciiSpans ( HexBufferSpanSelection span ) : IEnumerable
span HexBufferSpanSelection Span and selection flags
Résultat IEnumerable

GetClosestCellPosition() public méthode

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

GetClosestCellPosition() public méthode

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
Résultat HexCellPosition?

GetLinePosition() public méthode

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

GetLinePositionInfo() public méthode

Creates a HexLinePositionInfo
public GetLinePositionInfo ( int linePosition ) : HexLinePositionInfo
linePosition int Line position
Résultat HexLinePositionInfo

GetOffsetSpan() public abstract méthode

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
Résultat Microsoft.VisualStudio.Text.Span

GetSpan() public méthode

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
Résultat Microsoft.VisualStudio.Text.Span

GetSpans() public méthode

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

GetSpans() public méthode

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

GetText() public méthode

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

GetValuesSpan() public abstract méthode

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
Résultat Microsoft.VisualStudio.Text.Span

GetValuesSpans() public méthode

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

GetValuesSpans() public méthode

Gets values spans
public GetValuesSpans ( HexBufferSpanSelection span ) : IEnumerable
span HexBufferSpanSelection Span and selection flags
Résultat IEnumerable

HexBufferLine() protected méthode

Constructor
protected HexBufferLine ( ) : System
Résultat System

IsColumnPresent() public méthode

Returns true if a column is present
public IsColumnPresent ( HexColumnType column ) : bool
column HexColumnType Column
Résultat bool

ToString() public méthode

Returns Text
public ToString ( ) : string
Résultat string