C# Класс dnSpy.Contracts.Hex.HexBufferLine

Line information
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
ClearCells ( char chars, bool isColumnPresent, HexCellCollection cells, HexBufferSpan visibleBytes ) : void
HexBufferLine ( ) : System

Constructor

Приватные методы

Метод Описание
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

Описание методов

ClearCells() защищенный Метод

protected ClearCells ( char chars, bool isColumnPresent, HexCellCollection cells, HexBufferSpan visibleBytes ) : void
chars char
isColumnPresent bool
cells HexCellCollection
visibleBytes HexBufferSpan
Результат void

GetAsciiSpan() публичный абстрактный Метод

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
Результат Microsoft.VisualStudio.Text.Span

GetAsciiSpans() публичный Метод

Gets ASCII spans
public GetAsciiSpans ( HexBufferSpan span, HexSpanSelectionFlags flags ) : IEnumerable
span HexBufferSpan Buffer span
flags HexSpanSelectionFlags Flags
Результат IEnumerable

GetAsciiSpans() публичный Метод

Gets ASCII spans
public GetAsciiSpans ( HexBufferSpanSelection span ) : IEnumerable
span HexBufferSpanSelection Span and selection flags
Результат IEnumerable

GetClosestCellPosition() публичный Метод

Gets the closest cell position
public GetClosestCellPosition ( HexLinePositionInfo position, bool onlyVisibleCells ) : HexCellPosition?
position HexLinePositionInfo Position
onlyVisibleCells bool true to only return cells with data
Результат HexCellPosition?

GetClosestCellPosition() публичный Метод

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
Результат HexCellPosition?

GetLinePosition() публичный Метод

Gets a text line position or null
public GetLinePosition ( HexCellPosition position ) : int?
position HexCellPosition Position
Результат int?

GetLinePositionInfo() публичный Метод

Creates a HexLinePositionInfo
public GetLinePositionInfo ( int linePosition ) : HexLinePositionInfo
linePosition int Line position
Результат HexLinePositionInfo

GetOffsetSpan() публичный абстрактный Метод

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
Результат Microsoft.VisualStudio.Text.Span

GetSpan() публичный Метод

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
Результат Microsoft.VisualStudio.Text.Span

GetSpans() публичный Метод

Gets column spans in column order
public GetSpans ( HexBufferSpan span, HexSpanSelectionFlags flags ) : IEnumerable
span HexBufferSpan Buffer span
flags HexSpanSelectionFlags Flags
Результат IEnumerable

GetSpans() публичный Метод

Gets column spans in column order
public GetSpans ( HexBufferSpanSelection span ) : IEnumerable
span HexBufferSpanSelection Span and selection flags
Результат IEnumerable

GetText() публичный Метод

Gets the text. All cells outside the input range are cleared.
public GetText ( HexBufferSpan visibleBytes ) : string
visibleBytes HexBufferSpan Visible bytes
Результат string

GetValuesSpan() публичный абстрактный Метод

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
Результат Microsoft.VisualStudio.Text.Span

GetValuesSpans() публичный Метод

Gets values spans
public GetValuesSpans ( HexBufferSpan span, HexSpanSelectionFlags flags ) : IEnumerable
span HexBufferSpan Buffer span
flags HexSpanSelectionFlags Flags
Результат IEnumerable

GetValuesSpans() публичный Метод

Gets values spans
public GetValuesSpans ( HexBufferSpanSelection span ) : IEnumerable
span HexBufferSpanSelection Span and selection flags
Результат IEnumerable

HexBufferLine() защищенный Метод

Constructor
protected HexBufferLine ( ) : System
Результат System

IsColumnPresent() публичный Метод

Returns true if a column is present
public IsColumnPresent ( HexColumnType column ) : bool
column HexColumnType Column
Результат bool

ToString() публичный Метод

Returns Text
public ToString ( ) : string
Результат string