PinnedBufferCreateT Method (T) |
Initializes a new instance with an existing type T array and pins memory
position.
Namespace:
Arsenal.ImageMounter.IO
Assembly:
Arsenal.ImageMounter (in Arsenal.ImageMounter.dll) Version: 1.0.0.0 (3.4.140.0)
Syntax public static PinnedBuffer<T> Create<T>(
T[] instance
)
where T : struct, new()
Public Shared Function Create(Of T As {Structure, New}) (
instance As T()
) As PinnedBuffer(Of T)
public:
generic<typename T>
where T : value class, gcnew()
static PinnedBuffer<T>^ Create(
array<T>^ instance
)
static member Create :
instance : 'T[] -> PinnedBuffer<'T> when 'T : struct, new()
Parameters
- instance
- Type: T
Existing object to marshal to unmanaged memory.
Type Parameters
- T
Return Value
Type:
PinnedBufferTSee Also