編輯

共用方式為


NIndex Constructors

Definition

Overloads

NIndex(Index)

Construct a NIndex from a Index

NIndex(IntPtr, Boolean)

Construct an NIndex using a value and indicating if the NIndex is from the start or from the end.

NIndex(Index)

Source:
NIndex.cs
Source:
NIndex.cs

Construct a NIndex from a Index

public:
 NIndex(Index index);
public NIndex (Index index);
new System.Buffers.NIndex : Index -> System.Buffers.NIndex
Public Sub New (index As Index)

Parameters

index
Index

The Index to create the NIndex from.

Remarks

If the NIndex constructed from the end, index value 1 means pointing at the last element and index value 0 means pointing at beyond last element.

Applies to

NIndex(IntPtr, Boolean)

Source:
NIndex.cs
Source:
NIndex.cs

Construct an NIndex using a value and indicating if the NIndex is from the start or from the end.

public NIndex (IntPtr value, bool fromEnd = false);
new System.Buffers.NIndex : nativeint * bool -> System.Buffers.NIndex
Public Sub New (value As IntPtr, Optional fromEnd As Boolean = false)

Parameters

value
IntPtr

nativeint

The index value. it has to be zero or positive number.

fromEnd
Boolean

Indicating if the index is from the start or from the end.

Remarks

If the NIndex constructed from the end, index value 1 means pointing at the last element and index value 0 means pointing at beyond last element.

Applies to