|
| 1 | +// Auto-generated by geninterop.py. |
| 2 | +// DO NOT MODIFIY BY HAND. |
| 3 | + |
| 4 | + |
| 5 | +#if PYTHON37 |
| 6 | +using System; |
| 7 | +using System.Collections; |
| 8 | +using System.Collections.Specialized; |
| 9 | +using System.Runtime.InteropServices; |
| 10 | +using System.Reflection; |
| 11 | +using System.Text; |
| 12 | + |
| 13 | +namespace Python.Runtime |
| 14 | +{ |
| 15 | + [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] |
| 16 | + internal class TypeOffset |
| 17 | + { |
| 18 | + static TypeOffset() |
| 19 | + { |
| 20 | + Type type = typeof(TypeOffset); |
| 21 | + FieldInfo[] fi = type.GetFields(); |
| 22 | + int size = IntPtr.Size; |
| 23 | + for (int i = 0; i < fi.Length; i++) |
| 24 | + { |
| 25 | + fi[i].SetValue(null, i * size); |
| 26 | + } |
| 27 | + } |
| 28 | + |
| 29 | + public static int magic() |
| 30 | + { |
| 31 | + return ob_size; |
| 32 | + } |
| 33 | + |
| 34 | + // Auto-generated from PyHeapTypeObject in Python.h |
| 35 | + public static int ob_refcnt = 0; |
| 36 | + public static int ob_type = 0; |
| 37 | + public static int ob_size = 0; |
| 38 | + public static int tp_name = 0; |
| 39 | + public static int tp_basicsize = 0; |
| 40 | + public static int tp_itemsize = 0; |
| 41 | + public static int tp_dealloc = 0; |
| 42 | + public static int tp_print = 0; |
| 43 | + public static int tp_getattr = 0; |
| 44 | + public static int tp_setattr = 0; |
| 45 | + public static int tp_as_async = 0; |
| 46 | + public static int tp_repr = 0; |
| 47 | + public static int tp_as_number = 0; |
| 48 | + public static int tp_as_sequence = 0; |
| 49 | + public static int tp_as_mapping = 0; |
| 50 | + public static int tp_hash = 0; |
| 51 | + public static int tp_call = 0; |
| 52 | + public static int tp_str = 0; |
| 53 | + public static int tp_getattro = 0; |
| 54 | + public static int tp_setattro = 0; |
| 55 | + public static int tp_as_buffer = 0; |
| 56 | + public static int tp_flags = 0; |
| 57 | + public static int tp_doc = 0; |
| 58 | + public static int tp_traverse = 0; |
| 59 | + public static int tp_clear = 0; |
| 60 | + public static int tp_richcompare = 0; |
| 61 | + public static int tp_weaklistoffset = 0; |
| 62 | + public static int tp_iter = 0; |
| 63 | + public static int tp_iternext = 0; |
| 64 | + public static int tp_methods = 0; |
| 65 | + public static int tp_members = 0; |
| 66 | + public static int tp_getset = 0; |
| 67 | + public static int tp_base = 0; |
| 68 | + public static int tp_dict = 0; |
| 69 | + public static int tp_descr_get = 0; |
| 70 | + public static int tp_descr_set = 0; |
| 71 | + public static int tp_dictoffset = 0; |
| 72 | + public static int tp_init = 0; |
| 73 | + public static int tp_alloc = 0; |
| 74 | + public static int tp_new = 0; |
| 75 | + public static int tp_free = 0; |
| 76 | + public static int tp_is_gc = 0; |
| 77 | + public static int tp_bases = 0; |
| 78 | + public static int tp_mro = 0; |
| 79 | + public static int tp_cache = 0; |
| 80 | + public static int tp_subclasses = 0; |
| 81 | + public static int tp_weaklist = 0; |
| 82 | + public static int tp_del = 0; |
| 83 | + public static int tp_version_tag = 0; |
| 84 | + public static int tp_finalize = 0; |
| 85 | + public static int am_await = 0; |
| 86 | + public static int am_aiter = 0; |
| 87 | + public static int am_anext = 0; |
| 88 | + public static int nb_add = 0; |
| 89 | + public static int nb_subtract = 0; |
| 90 | + public static int nb_multiply = 0; |
| 91 | + public static int nb_remainder = 0; |
| 92 | + public static int nb_divmod = 0; |
| 93 | + public static int nb_power = 0; |
| 94 | + public static int nb_negative = 0; |
| 95 | + public static int nb_positive = 0; |
| 96 | + public static int nb_absolute = 0; |
| 97 | + public static int nb_bool = 0; |
| 98 | + public static int nb_invert = 0; |
| 99 | + public static int nb_lshift = 0; |
| 100 | + public static int nb_rshift = 0; |
| 101 | + public static int nb_and = 0; |
| 102 | + public static int nb_xor = 0; |
| 103 | + public static int nb_or = 0; |
| 104 | + public static int nb_int = 0; |
| 105 | + public static int nb_reserved = 0; |
| 106 | + public static int nb_float = 0; |
| 107 | + public static int nb_inplace_add = 0; |
| 108 | + public static int nb_inplace_subtract = 0; |
| 109 | + public static int nb_inplace_multiply = 0; |
| 110 | + public static int nb_inplace_remainder = 0; |
| 111 | + public static int nb_inplace_power = 0; |
| 112 | + public static int nb_inplace_lshift = 0; |
| 113 | + public static int nb_inplace_rshift = 0; |
| 114 | + public static int nb_inplace_and = 0; |
| 115 | + public static int nb_inplace_xor = 0; |
| 116 | + public static int nb_inplace_or = 0; |
| 117 | + public static int nb_floor_divide = 0; |
| 118 | + public static int nb_true_divide = 0; |
| 119 | + public static int nb_inplace_floor_divide = 0; |
| 120 | + public static int nb_inplace_true_divide = 0; |
| 121 | + public static int nb_index = 0; |
| 122 | + public static int nb_matrix_multiply = 0; |
| 123 | + public static int nb_inplace_matrix_multiply = 0; |
| 124 | + public static int mp_length = 0; |
| 125 | + public static int mp_subscript = 0; |
| 126 | + public static int mp_ass_subscript = 0; |
| 127 | + public static int sq_length = 0; |
| 128 | + public static int sq_concat = 0; |
| 129 | + public static int sq_repeat = 0; |
| 130 | + public static int sq_item = 0; |
| 131 | + public static int was_sq_slice = 0; |
| 132 | + public static int sq_ass_item = 0; |
| 133 | + public static int was_sq_ass_slice = 0; |
| 134 | + public static int sq_contains = 0; |
| 135 | + public static int sq_inplace_concat = 0; |
| 136 | + public static int sq_inplace_repeat = 0; |
| 137 | + public static int bf_getbuffer = 0; |
| 138 | + public static int bf_releasebuffer = 0; |
| 139 | + public static int name = 0; |
| 140 | + public static int ht_slots = 0; |
| 141 | + public static int qualname = 0; |
| 142 | + public static int ht_cached_keys = 0; |
| 143 | + |
| 144 | + /* here are optional user slots, followed by the members. */ |
| 145 | + public static int members = 0; |
| 146 | + } |
| 147 | +} |
| 148 | + |
| 149 | +#endif |
0 commit comments