Table of Contents

Method PtrToArray

Namespace
Innova.Prism.Library.Security
Assembly
Innova.Prism.Library.dll

PtrToArray<T>(UnmanagedType, IntPtr, int)

Reads an array from unmanaged memory given a pointer and the array size.

public static T[] PtrToArray<T>(UnmanagedType type, IntPtr ptr, int size)

Parameters

type UnmanagedType
ptr IntPtr
size int

Returns

T[]

Type Parameters

T

PtrToArray<T>(UnmanagedType, IntPtr, uint)

Calls the other overload.

public static T[] PtrToArray<T>(UnmanagedType type, IntPtr ptr, uint size)

Parameters

type UnmanagedType
ptr IntPtr
size uint

Returns

T[]

Type Parameters

T