ArrayWithOffset ArrayWithOffset ArrayWithOffset ArrayWithOffset Struct

定义

封装指定数组内的数组和偏移量。Encapsulates an array and an offset within the specified array.

public value class ArrayWithOffset
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public struct ArrayWithOffset
type ArrayWithOffset = struct
Public Structure ArrayWithOffset
继承
ArrayWithOffsetArrayWithOffsetArrayWithOffsetArrayWithOffset
属性

注解

可以使用作为自变量为本机平台通过方法调用。Can be used as an argument to a native method reached through platform invoke. 在这种情况下,平台调用封送处理程序将检索数组的起始地址、 其增加偏移量,并将生成的指针传递给基础本机函数。In this case, the platform invoke marshaler will retrieve the starting address of the array, add the offset, and pass the resulting pointer to the underlying native function. 此结构仅支持不包含任何引用,如基元类型数组和只包含字段的基元类型的值类型数组的数组。This structure only supports arrays containing no references, such as primitive type arrays and value type arrays containing only fields of primitive types.

构造函数

ArrayWithOffset(Object, Int32) ArrayWithOffset(Object, Int32) ArrayWithOffset(Object, Int32) ArrayWithOffset(Object, Int32)

初始化 ArrayWithOffset 结构的新实例。Initializes a new instance of the ArrayWithOffset structure.

方法

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

指示指定的对象是否与当前的 ArrayWithOffset 对象匹配。Indicates whether the specified object matches the current ArrayWithOffset object.

Equals(ArrayWithOffset) Equals(ArrayWithOffset) Equals(ArrayWithOffset) Equals(ArrayWithOffset)

指示指定的 ArrayWithOffset 对象是否与当前实例匹配。Indicates whether the specified ArrayWithOffset object matches the current instance.

GetArray() GetArray() GetArray() GetArray()

返回此 ArrayWithOffset 引用的托管数组。Returns the managed array referenced by this ArrayWithOffset.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

返回此值类型的哈希代码。Returns a hash code for this value type.

GetOffset() GetOffset() GetOffset() GetOffset()

返回当构造此 ArrayWithOffset 时提供的偏移量。Returns the offset provided when this ArrayWithOffset was constructed.

操作员

Equality(ArrayWithOffset, ArrayWithOffset) Equality(ArrayWithOffset, ArrayWithOffset) Equality(ArrayWithOffset, ArrayWithOffset) Equality(ArrayWithOffset, ArrayWithOffset)

确定两个指定的 ArrayWithOffset 对象是否具有相同的值。Determines whether two specified ArrayWithOffset objects have the same value.

Inequality(ArrayWithOffset, ArrayWithOffset) Inequality(ArrayWithOffset, ArrayWithOffset) Inequality(ArrayWithOffset, ArrayWithOffset) Inequality(ArrayWithOffset, ArrayWithOffset)

确定两个指定的 ArrayWithOffset 对象是否具有不同值。Determines whether two specified ArrayWithOffset objects no not have the same value.

适用于