ArrayWithOffset ArrayWithOffset ArrayWithOffset ArrayWithOffset Struct

Definition

Encapsulates an array and an offset within the specified array.

public value class ArrayWithOffset
[System.Runtime.InteropServices.ComVisible(true)]
public struct ArrayWithOffset
type ArrayWithOffset = struct
Public Structure ArrayWithOffset
Inheritance
ArrayWithOffsetArrayWithOffsetArrayWithOffsetArrayWithOffset
Attributes

Remarks

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.

Constructors

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

Initializes a new instance of the ArrayWithOffset structure.

Methods

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

Indicates whether the specified object matches the current ArrayWithOffset object.

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

Indicates whether the specified ArrayWithOffset object matches the current instance.

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

Returns the managed array referenced by this ArrayWithOffset.

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

Returns a hash code for this value type.

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

Returns the offset provided when this ArrayWithOffset was constructed.

Operators

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

Determines whether two specified ArrayWithOffset objects have the same value.

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

Determines whether two specified ArrayWithOffset objects no not have the same value.

Applies to