Exemplo n.º 1
0
 /// <summary>
 /// Returns the size of a specific primitive or struct type.
 /// </summary>
 /// <param name="marshalElement">If set to true; will return the size of an element after marshalling.</param>
 /// <param name="elementCount">The number of array elements present.</param>
 public static int GetSize <T>(int elementCount, bool marshalElement = false)
 {
     return(Struct.GetSize <T>(marshalElement) * elementCount);
 }