Array index helper.
Pointer
00 Remarks
(在数组的索引基础上封装了数组本身)
| Name | Description |
|---|---|
T |
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| .ctor | 2 | |
| MoveNext | 1 | Pointer move to next and then returns is Pointer.EndRead |
| PeekNext | 1 | 获取得到下一个对象而不移动当前的内部指针 |
| GetLeftsAll | 1 | 获取当前指针位置后面的所有元素 |
| op_Explicit | 1 | 获取得到当前的元素 |
| op_LeftShift | 1 | 前移offset个单位,然后返回值,这个和Peek的作用一样,不会改变指针位置 |
| op_RightShift | 1 | 后移offset个单位,然后返回值,这个和Peek的作用一样,不会改变指针位置 |
| op_Addition | 1 | Move steps and returns this pointer |
| op_Subtraction | 1 | move back current read position index |
| op_UnaryPlus | 1 | Pointer move to next and then returns the previous value |
| op_UnaryNegation | 1 | The stack trace back operator. |
| ToString | 1 | |
| op_True | 1 | |
| op_False | 1 | |
| op_OnesComplement | 1 | |
| op_Implicit | 1 | |
| op_LessThanOrEqual | 1 | |
| op_GreaterThanOrEqual | 1 | |
| stackalloc | 1 | |
| op_Equality | 1 | |
| op_Inequality | 1 |
03 Properties
04 Fields
| Name | Overloads | Summary |
|---|---|---|
| buffer | 1 | the in-memory dataset |
05 Members
`0())为了保持原来的对象引用,在这里就不进行ToArray数组复制来打破这种引用关系了
| Name | Type | Description |
|---|---|---|
array | `0() | - |
IEnumerable(Of `0))Create a collection wrapper from a source buffer.
construct an in-memory dataset
| Name | Type | Description |
|---|---|---|
source | IEnumerable(Of `0) | The collection source buffer |
Pointer move to next and then returns is Pointer.EndRead
获取得到下一个对象而不移动当前的内部指针
获取当前指针位置后面的所有元素
获取得到当前的元素
| Name | Type | Description |
|---|---|---|
p | Pointer(Of `0) | - |
Int32)前移offset个单位,然后返回值,这个和Peek的作用一样,不会改变指针位置
| Name | Type | Description |
|---|---|---|
p | Pointer(Of `0) | - |
offset | Int32 | - |
Int32)后移offset个单位,然后返回值,这个和Peek的作用一样,不会改变指针位置
| Name | Type | Description |
|---|---|---|
p | Pointer(Of `0) | - |
offset | Int32 | - |
Int32)Move steps and returns this pointer
| Name | Type | Description |
|---|---|---|
ptr | Pointer(Of `0) | - |
d | Int32 | - |
Int32)move back current read position index
| Name | Type | Description |
|---|---|---|
ptr | Pointer(Of `0) | - |
d | Int32 | - |
Pointer move to next and then returns the previous value
| Name | Type | Description |
|---|---|---|
ptr | Pointer(Of `0) | - |
The stack trace back operator. (指针的位置往回移动一个单位,然后返回原来的位置的元素的值)
| Name | Type | Description |
|---|---|---|
ptr | Pointer(Of `0) | - |
Pointer.Position -> its current value
当前的位置是指相对于当前的位置offset为0的位置就是当前的位置
Memory block size
buffer.Length
返回指定维度的一个数组,最高可用的下标。
Int32。 指定维度的下标可以包含的最大值。 如果 Array 只有一个元素, UBound ,则返回 0。 如果 Array 不包含任何元素,例如,如果它是零长度字符串, UBound 返回-1。
Int32)相对于当前的指针的位置而言的
这个属性并不会移动当前的指针的位置
| Name | Type | Description |
|---|---|---|
p | Int32 | 相对于当前的位置的offset偏移量 |
Raw memory of this pointer
Is read to end?
Current read position
the in-memory dataset
T())Int32)Int32)Int32)