ReadOnlySpanMarshaller<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(ReadOnlySpan<T>) |
Pins the managed span to a pointer to pass directly to unmanaged code. |
GetPinnableReference()
- Source:
- ReadOnlySpanMarshaller.cs
- Source:
- ReadOnlySpanMarshaller.cs
- Source:
- ReadOnlySpanMarshaller.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(ReadOnlySpan<T>)
- Source:
- ReadOnlySpanMarshaller.cs
- Source:
- ReadOnlySpanMarshaller.cs
- Source:
- ReadOnlySpanMarshaller.cs
Pins the managed span to a pointer to pass directly to unmanaged code.
public:
static T % GetPinnableReference(ReadOnlySpan<T> managed);
public static ref T GetPinnableReference (ReadOnlySpan<T> managed);
static member GetPinnableReference : ReadOnlySpan<'T> -> 'T
Public Shared Function GetPinnableReference (managed As ReadOnlySpan(Of T)) As T
Parameters
- managed
- ReadOnlySpan<T>
The managed span.
Returns
T
A reference that can be pinned and directly passed to unmanaged code.
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.