blob.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. /**
  2. * \file
  3. * Definitions used to pull information out of the Blob
  4. *
  5. */
  6. #ifndef _MONO_METADATA_BLOB_H_
  7. #define _MONO_METADATA_BLOB_H_
  8. /*
  9. * Encoding for type signatures used in the Metadata
  10. */
  11. typedef enum {
  12. MONO_TYPE_END = 0x00, /* End of List */
  13. MONO_TYPE_VOID = 0x01,
  14. MONO_TYPE_BOOLEAN = 0x02,
  15. MONO_TYPE_CHAR = 0x03,
  16. MONO_TYPE_I1 = 0x04,
  17. MONO_TYPE_U1 = 0x05,
  18. MONO_TYPE_I2 = 0x06,
  19. MONO_TYPE_U2 = 0x07,
  20. MONO_TYPE_I4 = 0x08,
  21. MONO_TYPE_U4 = 0x09,
  22. MONO_TYPE_I8 = 0x0a,
  23. MONO_TYPE_U8 = 0x0b,
  24. MONO_TYPE_R4 = 0x0c,
  25. MONO_TYPE_R8 = 0x0d,
  26. MONO_TYPE_STRING = 0x0e,
  27. MONO_TYPE_PTR = 0x0f, /* arg: <type> token */
  28. MONO_TYPE_BYREF = 0x10, /* arg: <type> token */
  29. MONO_TYPE_VALUETYPE = 0x11, /* arg: <type> token */
  30. MONO_TYPE_CLASS = 0x12, /* arg: <type> token */
  31. MONO_TYPE_VAR = 0x13, /* number */
  32. MONO_TYPE_ARRAY = 0x14, /* type, rank, boundsCount, bound1, loCount, lo1 */
  33. MONO_TYPE_GENERICINST= 0x15, /* <type> <type-arg-count> <type-1> \x{2026} <type-n> */
  34. MONO_TYPE_TYPEDBYREF = 0x16,
  35. MONO_TYPE_I = 0x18,
  36. MONO_TYPE_U = 0x19,
  37. MONO_TYPE_FNPTR = 0x1b, /* arg: full method signature */
  38. MONO_TYPE_OBJECT = 0x1c,
  39. MONO_TYPE_SZARRAY = 0x1d, /* 0-based one-dim-array */
  40. MONO_TYPE_MVAR = 0x1e, /* number */
  41. MONO_TYPE_CMOD_REQD = 0x1f, /* arg: typedef or typeref token */
  42. MONO_TYPE_CMOD_OPT = 0x20, /* optional arg: typedef or typref token */
  43. MONO_TYPE_INTERNAL = 0x21, /* CLR internal type */
  44. MONO_TYPE_MODIFIER = 0x40, /* Or with the following types */
  45. MONO_TYPE_SENTINEL = 0x41, /* Sentinel for varargs method signature */
  46. MONO_TYPE_PINNED = 0x45, /* Local var that points to pinned object */
  47. MONO_TYPE_ENUM = 0x55 /* an enumeration */
  48. } MonoTypeEnum;
  49. typedef enum {
  50. MONO_TABLE_MODULE,
  51. MONO_TABLE_TYPEREF,
  52. MONO_TABLE_TYPEDEF,
  53. MONO_TABLE_FIELD_POINTER,
  54. MONO_TABLE_FIELD,
  55. MONO_TABLE_METHOD_POINTER,
  56. MONO_TABLE_METHOD,
  57. MONO_TABLE_PARAM_POINTER,
  58. MONO_TABLE_PARAM,
  59. MONO_TABLE_INTERFACEIMPL,
  60. MONO_TABLE_MEMBERREF, /* 0xa */
  61. MONO_TABLE_CONSTANT,
  62. MONO_TABLE_CUSTOMATTRIBUTE,
  63. MONO_TABLE_FIELDMARSHAL,
  64. MONO_TABLE_DECLSECURITY,
  65. MONO_TABLE_CLASSLAYOUT,
  66. MONO_TABLE_FIELDLAYOUT, /* 0x10 */
  67. MONO_TABLE_STANDALONESIG,
  68. MONO_TABLE_EVENTMAP,
  69. MONO_TABLE_EVENT_POINTER,
  70. MONO_TABLE_EVENT,
  71. MONO_TABLE_PROPERTYMAP,
  72. MONO_TABLE_PROPERTY_POINTER,
  73. MONO_TABLE_PROPERTY,
  74. MONO_TABLE_METHODSEMANTICS,
  75. MONO_TABLE_METHODIMPL,
  76. MONO_TABLE_MODULEREF, /* 0x1a */
  77. MONO_TABLE_TYPESPEC,
  78. MONO_TABLE_IMPLMAP,
  79. MONO_TABLE_FIELDRVA,
  80. MONO_TABLE_ENCLOG,
  81. MONO_TABLE_ENCMAP,
  82. MONO_TABLE_ASSEMBLY, /* 0x20 */
  83. MONO_TABLE_ASSEMBLYPROCESSOR,
  84. MONO_TABLE_ASSEMBLYOS,
  85. MONO_TABLE_ASSEMBLYREF,
  86. MONO_TABLE_ASSEMBLYREFPROCESSOR,
  87. MONO_TABLE_ASSEMBLYREFOS,
  88. MONO_TABLE_FILE,
  89. MONO_TABLE_EXPORTEDTYPE,
  90. MONO_TABLE_MANIFESTRESOURCE,
  91. MONO_TABLE_NESTEDCLASS,
  92. MONO_TABLE_GENERICPARAM, /* 0x2a */
  93. MONO_TABLE_METHODSPEC,
  94. MONO_TABLE_GENERICPARAMCONSTRAINT,
  95. MONO_TABLE_UNUSED8,
  96. MONO_TABLE_UNUSED9,
  97. MONO_TABLE_UNUSED10,
  98. /* Portable PDB tables */
  99. MONO_TABLE_DOCUMENT, /* 0x30 */
  100. MONO_TABLE_METHODBODY,
  101. MONO_TABLE_LOCALSCOPE,
  102. MONO_TABLE_LOCALVARIABLE,
  103. MONO_TABLE_LOCALCONSTANT,
  104. MONO_TABLE_IMPORTSCOPE,
  105. MONO_TABLE_STATEMACHINEMETHOD,
  106. MONO_TABLE_CUSTOMDEBUGINFORMATION
  107. #define MONO_TABLE_LAST MONO_TABLE_CUSTOMDEBUGINFORMATION
  108. #define MONO_TABLE_NUM (MONO_TABLE_LAST + 1)
  109. } MonoMetaTableEnum;
  110. #endif