daceb525ec96dd145d5f53d8c17d6b969694a4b7
[mono.git] / mono / dis / get.h
1
2 /*
3  * These return allocated strings
4  */
5 char *get_typedef             (MonoImage *m, int idx);
6 char *get_module              (MonoImage *m, int idx);
7 char *get_assemblyref         (MonoImage *m, int idx);
8 char *get_typeref             (MonoImage *m, int idx);
9 char *get_typedef_or_ref      (MonoImage *m, guint32 dor_token);
10 char *get_type_or_methdef     (MonoImage *m, guint32 dor_token);
11 char *get_field_signature     (MonoImage *m, guint32 blob_signature);
12 char *get_fieldref_signature  (MonoImage *m, int idx);
13 char *decode_literal          (MonoImage *m, guint32 token);
14 char *get_field               (MonoImage *m, guint32 token);
15 char *param_flags             (guint32 f);
16 char *field_flags             (guint32 f);
17 char *get_methodref_signature (MonoImage *m, guint32 blob_signature, const char *fancy);
18 char *get_constant            (MonoImage *m, MonoTypeEnum t, guint32 blob_index);
19 char *get_token               (MonoImage *m, guint32 token);
20 char *get_token_type          (MonoImage *m, guint32 token);
21 char *get_typespec            (MonoImage *m, guint32 blob_idx);
22 char *get_methoddef           (MonoImage *m, guint32 idx);
23 char *get_method              (MonoImage *m, guint32 token);
24 char *get_guid                (MonoImage *m, guint32 guid_index);
25 char *get_marshal_info        (MonoImage *m, const char *blob);
26 char* get_generic_param       (MonoImage *m, int table_type, guint32 row);
27
28 GList *dis_get_custom_attrs   (MonoImage *m, guint32 token);
29
30 char *dis_stringify_type      (MonoImage *m, MonoType *type);
31 char *dis_stringify_token     (MonoImage *m, guint32 token);
32 char *dis_stringify_array     (MonoImage *m, MonoArrayType *array);
33 char *dis_stringify_modifiers (MonoImage *m, int n, MonoCustomMod *mod);
34 char *dis_stringify_param     (MonoImage *m, MonoType *param);
35 char *dis_stringify_method_signature (MonoImage *m, MonoMethodSignature *method, int methoddef_row, gboolean fully_qualified);
36
37 /*
38  * These functions are used during the decoding of streams in the
39  * metadata heaps (a simple parsing).
40  *
41  * They return the `next' location to continue parsing from (ptr is
42  * the starting location).
43  *
44  * Results are returning in the pointer argument.
45  */
46 const char *get_encoded_typedef_or_ref (MonoImage *m, const char *ptr,
47                                         char **result);
48 const char *get_encoded_value          (const char *_ptr,
49                                         guint32 *len);
50 const char *get_custom_mod             (MonoImage *m, const char *ptr,
51                                         char **return_value);
52 const char *get_type                   (MonoImage *m, const char *ptr,
53                                         char **result);
54 const char *get_ret_type               (MonoImage *m, const char *ptr,
55                                         char **ret_type);
56 const char *get_param                  (MonoImage *m, const char *ptr,
57                                         char **retval);
58 const char *get_blob_encoded_size      (const char *ptr, int *size);
59
60 MonoTypeEnum get_field_literal_type (MonoImage *m, guint32 blob_signature);
61