public static T[] MarshalArray <T>(IntPtr pointer, int length) where T : struct { return(MemoryHelper.MarshalArray <T>(pointer, length, false)); }
public static int GetBpp(DataFormat format, DataType dataType) { return(MemoryHelper.GetDataTypeSize(dataType) * MemoryHelper.GetFormatComponentCount(format)); }