ArrayWithOffset Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Encapsulates an array and an offset within the specified array.
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)
- Inheritance
- Attributes
- Implements
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) |
Initializes a new instance of the ArrayWithOffset structure. |
Methods
Equals(ArrayWithOffset) |
Indicates whether the specified ArrayWithOffset object matches the current instance. |
Equals(Object) |
Indicates whether the specified object matches the current ArrayWithOffset object. |
GetArray() |
Returns the managed array referenced by this ArrayWithOffset. |
GetHashCode() |
Returns a hash code for this value type. |
GetOffset() |
Returns the offset provided when this ArrayWithOffset was constructed. |
Operators
Equality(ArrayWithOffset, ArrayWithOffset) |
Determines whether two specified ArrayWithOffset objects have the same value. |
Inequality(ArrayWithOffset, ArrayWithOffset) |
Determines whether two specified ArrayWithOffset objects no not have the same value. |
Applies to
Pripomienky
https://aka.ms/ContentUserFeedback.
Pripravujeme: V priebehu roka 2024 postupne zrušíme službu Problémy v službe GitHub ako mechanizmus pripomienok týkajúcich sa obsahu a nahradíme ju novým systémom pripomienok. Ďalšie informácie nájdete na stránke:Odoslať a zobraziť pripomienky pre