SpanMarshaller<T,TUnmanagedElement>.ManagedToUnmanagedIn.GetPinnableReference Method
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.
Overloads
GetPinnableReference() |
Returns a reference to the marshalled array. |
GetPinnableReference(Span<T>) |
Gets a pinnable reference to the managed span. |
GetPinnableReference()
- Source:
- SpanMarshaller.cs
- Source:
- SpanMarshaller.cs
- Source:
- SpanMarshaller.cs
Returns a reference to the marshalled array.
public:
TUnmanagedElement % GetPinnableReference();
public ref TUnmanagedElement GetPinnableReference ();
member this.GetPinnableReference : unit -> 'UnmanagedElement
Public Function GetPinnableReference () As TUnmanagedElement
Returns
TUnmanagedElement
A reference that can be pinned and directly passed to unmanaged code.
Applies to
GetPinnableReference(Span<T>)
- Source:
- SpanMarshaller.cs
- Source:
- SpanMarshaller.cs
- Source:
- SpanMarshaller.cs
Gets a pinnable reference to the managed span.
public:
static T % GetPinnableReference(Span<T> managed);
public static ref T GetPinnableReference (Span<T> managed);
static member GetPinnableReference : Span<'T> -> 'T
Public Shared Function GetPinnableReference (managed As Span(Of T)) As T
Parameters
- managed
- Span<T>
The managed span.
Returns
T
A reference that can be pinned and directly passed to unmanaged code.
Applies to
Vertu í samstarfi við okkur á GitHub
Heimildina fyrir þetta efni er að finna á GitHub, þar sem þú getur líka búið til og farið yfir vandamál og sameinað beiðnir. Frekari upplýsingar er að finna í framlagshandbók okkar.