Mirror of Svelto.ECS because we're a fan of it
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
269B

  1. using Svelto.ECS;
  2. namespace Svelto.Common
  3. {
  4. public class UnsafeUtils
  5. {
  6. public static uint SizeOf<T>() where T : unmanaged, IEntityStruct
  7. {
  8. unsafe
  9. {
  10. return (uint) sizeof(T);
  11. }
  12. }
  13. }
  14. }