il2cpp-blob.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #pragma once
  2. // Corresponds to element type signatures
  3. // See ECMA-335, II.23.1.16
  4. enum Il2CppTypeEnum
  5. {
  6. IL2CPP_TYPE_END = 0x00, /* End of List */
  7. IL2CPP_TYPE_VOID = 0x01,
  8. IL2CPP_TYPE_BOOLEAN = 0x02,
  9. IL2CPP_TYPE_CHAR = 0x03,
  10. IL2CPP_TYPE_I1 = 0x04,
  11. IL2CPP_TYPE_U1 = 0x05,
  12. IL2CPP_TYPE_I2 = 0x06,
  13. IL2CPP_TYPE_U2 = 0x07,
  14. IL2CPP_TYPE_I4 = 0x08,
  15. IL2CPP_TYPE_U4 = 0x09,
  16. IL2CPP_TYPE_I8 = 0x0a,
  17. IL2CPP_TYPE_U8 = 0x0b,
  18. IL2CPP_TYPE_R4 = 0x0c,
  19. IL2CPP_TYPE_R8 = 0x0d,
  20. IL2CPP_TYPE_STRING = 0x0e,
  21. IL2CPP_TYPE_PTR = 0x0f, /* arg: <type> token */
  22. IL2CPP_TYPE_BYREF = 0x10, /* arg: <type> token */
  23. IL2CPP_TYPE_VALUETYPE = 0x11, /* arg: <type> token */
  24. IL2CPP_TYPE_CLASS = 0x12, /* arg: <type> token */
  25. IL2CPP_TYPE_VAR = 0x13, /* Generic parameter in a generic type definition, represented as number (compressed unsigned integer) number */
  26. IL2CPP_TYPE_ARRAY = 0x14, /* type, rank, boundsCount, bound1, loCount, lo1 */
  27. IL2CPP_TYPE_GENERICINST = 0x15, /* <type> <type-arg-count> <type-1> \x{2026} <type-n> */
  28. IL2CPP_TYPE_TYPEDBYREF = 0x16,
  29. IL2CPP_TYPE_I = 0x18,
  30. IL2CPP_TYPE_U = 0x19,
  31. IL2CPP_TYPE_FNPTR = 0x1b, /* arg: full method signature */
  32. IL2CPP_TYPE_OBJECT = 0x1c,
  33. IL2CPP_TYPE_SZARRAY = 0x1d, /* 0-based one-dim-array */
  34. IL2CPP_TYPE_MVAR = 0x1e, /* Generic parameter in a generic method definition, represented as number (compressed unsigned integer) */
  35. IL2CPP_TYPE_CMOD_REQD = 0x1f, /* arg: typedef or typeref token */
  36. IL2CPP_TYPE_CMOD_OPT = 0x20, /* optional arg: typedef or typref token */
  37. IL2CPP_TYPE_INTERNAL = 0x21, /* CLR internal type */
  38. IL2CPP_TYPE_MODIFIER = 0x40, /* Or with the following types */
  39. IL2CPP_TYPE_SENTINEL = 0x41, /* Sentinel for varargs method signature */
  40. IL2CPP_TYPE_PINNED = 0x45, /* Local var that points to pinned object */
  41. IL2CPP_TYPE_ENUM = 0x55 /* an enumeration */
  42. };