ArrayWithOffset 结构

定义

封装指定数组内的数组和偏移量。

public value class ArrayWithOffset
public value class ArrayWithOffset : IEquatable<System::Runtime::InteropServices::ArrayWithOffset>
public struct ArrayWithOffset
public readonly struct ArrayWithOffset
public readonly struct ArrayWithOffset : IEquatable<System.Runtime.InteropServices.ArrayWithOffset>
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public struct ArrayWithOffset
type ArrayWithOffset = struct
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Serializable>]
type ArrayWithOffset = struct
Public Structure ArrayWithOffset
Public Structure ArrayWithOffset
Implements IEquatable(Of ArrayWithOffset)
继承
ArrayWithOffset
属性
实现

注解

可用作通过平台调用到达的本机方法的参数。 在这种情况下,平台调用封送器将检索数组的起始地址,添加偏移量,并将生成的指针传递给基础本机函数。 此结构仅支持不含引用的数组,例如基元类型数组和仅包含基元类型的字段的值类型数组。

构造函数

ArrayWithOffset(Object, Int32)

初始化 ArrayWithOffset 结构的新实例。

方法

Equals(ArrayWithOffset)

指示指定的 ArrayWithOffset 对象是否与当前实例匹配。

Equals(Object)

指示指定的对象是否与当前的 ArrayWithOffset 对象匹配。

GetArray()

返回此 ArrayWithOffset 引用的托管数组。

GetHashCode()

返回此值类型的哈希代码。

GetOffset()

返回当构造此 ArrayWithOffset 时提供的偏移量。

运算符

Equality(ArrayWithOffset, ArrayWithOffset)

确定两个指定的 ArrayWithOffset 对象是否具有相同的值。

Inequality(ArrayWithOffset, ArrayWithOffset)

确定两个指定的 ArrayWithOffset 对象是否具有不同值。

适用于