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