2 * blob.h: Definitions used to pull information out of the Blob
5 #ifndef _MONO_METADATA_BLOB_H_
6 #define _MONO_METADATA_BLOB_H_
8 #define SIGNATURE_HAS_THIS 0x20
9 #define SIGNATURE_EXPLICIT_THIS 0x40
10 #define SIGNATURE_VARARG 0x05
13 * Encoding for type signatures used in the Metadata
16 MONO_TYPE_END = 0x00, /* End of List */
17 MONO_TYPE_VOID = 0x01,
18 MONO_TYPE_BOOLEAN = 0x02,
19 MONO_TYPE_CHAR = 0x03,
30 MONO_TYPE_STRING = 0x0e,
31 MONO_TYPE_PTR = 0x0f, /* arg: <type> token */
32 MONO_TYPE_BYREF = 0x10, /* arg: <type> token */
33 MONO_TYPE_VALUETYPE = 0x11, /* arg: <type> token */
34 MONO_TYPE_CLASS = 0x12, /* arg: <type> token */
35 MONO_TYPE_VAR = 0x13, /* number */
36 MONO_TYPE_ARRAY = 0x14, /* type, rank, boundsCount, bound1, loCount, lo1 */
37 MONO_TYPE_GENERICINST= 0x15, /* <type> <type-arg-count> <type-1> \x{2026} <type-n> */
38 MONO_TYPE_TYPEDBYREF = 0x16,
41 MONO_TYPE_FNPTR = 0x1b, /* arg: full method signature */
42 MONO_TYPE_OBJECT = 0x1c,
43 MONO_TYPE_SZARRAY = 0x1d, /* 0-based one-dim-array */
44 MONO_TYPE_MVAR = 0x1e, /* number */
45 MONO_TYPE_CMOD_REQD = 0x1f, /* arg: typedef or typeref token */
46 MONO_TYPE_CMOD_OPT = 0x20, /* optional arg: typedef or typref token */
47 MONO_TYPE_INTERNAL = 0x21, /* CLR internal type */
49 MONO_TYPE_MODIFIER = 0x40, /* Or with the following types */
50 MONO_TYPE_SENTINEL = 0x41, /* Sentinel for varargs method signature */
51 MONO_TYPE_PINNED = 0x45 /* Local var that points to pinned object */