| | Name | Description |
|---|
  | AllocateMemory |
Allocates unmanaged memory. This memory should only be freed by this helper.
|
  | ClearMemory |
Clears the memory to zero.
|
  | CopyMemory |
Performs a memcopy that copies data from the memory pointed to by the source pointer to the memory pointer by the destination pointer.
|
  | FreeMemory |
Frees unmanaged memory that was allocated by this helper.
|
  | FreeNativeArrayT |
Frees an unmanaged array and performs cleanup for each value. Optionally can free an array of pointers. This can be used on any type that can be
marshaled into unmanaged memory.
|
  | FromNativeArrayT(IntPtr, Int32) |
Marshals an array of blittable structs from a c-style unmanaged array (void*). This should not be used on non-blittable types
that require marshaling by the runtime (e.g. has MarshalAs attributes).
|
  | FromNativeArrayManaged, Native(IntPtr, Int32, Boolean) |
Marshals an array of managed values from a c-style unmanaged array (void*). This also can optionally marshal from
an unmanaged array of pointers (void**).
|
  | FromNativePointerManaged, Native |
Marshals a managed value from unmanaged memory.
|
  | MarshalPointerT |
Convienence method for marshaling a structure to a pointer. Only use if the type is not blittable, otherwise
use the write methods for blittable types.
|
  | MarshalSizeOfT |
Computes the size of the struct type using Marshal SizeOf. Only use if the type is not blittable, thus requiring marshaling by the runtime,
(e.g. has MarshalAs attributes), otherwise use the SizeOf methods for blittable types.
|
  | MarshalStructureT(IntPtr) |
Convienence method for marshaling a pointer to a structure. Only use if the type is not blittable, otherwise
use the read methods for blittable types.
|
  | MarshalStructureT(IntPtr, T) |
Convienence method for marshaling a pointer to a structure. Only use if the type is not blittable, otherwise
use the read methods for blittable types.
|
  | ReadT(IntPtr) |
Reads a single element from the memory location.
|
  | ReadT(IntPtr, T) |
Reads a single element from the memory location.
|
  | ReadT(IntPtr, T, Int32, Int32) |
Reads data from the memory location into the array.
|
  | ReadStreamFully |
Reads a stream until the end is reached into a byte array. Based on
Jon Skeet's implementation.
It is up to the caller to dispose of the stream.
|
  | SizeOfT |
Computes the size of the struct type.
|
  | SizeOfT(T) |
Computes the size of the struct array.
|
  | ToNativeArrayT(ListT) |
Marshals a list of blittable structs to a c-style unmanaged array (void*). This should not be used on non-blittable types
that require marshaling by the runtime (e.g. has MarshalAs attributes).
|
  | ToNativeArrayT(T) |
Marshals an array of blittable structs to a c-style unmanaged array (void*). This should not be used on non-blittable types
that require marshaling by the runtime (e.g. has MarshalAs attributes).
|
  | ToNativeArrayManaged, Native(IReadOnlyCollectionManaged, Boolean) |
Marshals an array of managed values to a c-style unmanaged array (void*). This also can optionally marshal to
an unmanaged array of pointers (void**).
|
  | ToNativePointerManaged, Native |
Marshals a managed value to unmanaged memory.
|
  | WriteT(IntPtr, T) |
Writes a single element to the memory location.
|
  | WriteT(IntPtr, T, Int32, Int32) |
Writes data from the array to the memory location.
|
  | WriteT(IntPtr, ListT, Int32, Int32) |
Writes data from the list to the memory location.
|