语言

ArrayWithOffset 结构

定义

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

public value class ArrayWithOffset
public value class ArrayWithOffset : IEquatable<System::Runtime::InteropServices::ArrayWithOffset>
public struct ArrayWithOffset
public readonly struct ArrayWithOffset : IEquatable<System.Runtime.InteropServices.ArrayWithOffset>
public readonly struct 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 对象是否没有相同的值。

适用于