|
| | __init__ (self, *args) |
| | init(self) -> tinfo_t init(self, decl_type) -> tinfo_t
|
| |
| "void" | clear (self) |
| | clear(self) Clear contents of this tinfo, and remove from the type system.
|
| |
| "void" | swap (self, "tinfo_t" r) |
| | swap(self, r) Assign this = r and r = this.
|
| |
| "bool" | get_named_type (self, *args) |
| | get_named_type(self, til, name, decl_type=BTF_TYPEDEF, resolve=True, try_ordinal=True) -> bool
|
| |
| "bool" | get_numbered_type (self, *args) |
| | get_numbered_type(self, til, ordinal, decl_type=BTF_TYPEDEF, resolve=True) -> bool
|
| |
| "bool" | detach (self) |
| | detach(self) -> bool Detach tinfo_t from the underlying type.
|
| |
| "bool" | is_correct (self) |
| | is_correct(self) -> bool Is the type object correct?.
|
| |
| "type_t" | get_realtype (self, "bool" full=False) |
| | get_realtype(self, full=False) -> type_t Get the resolved base type.
|
| |
| "type_t" | get_decltype (self) |
| | get_decltype(self) -> type_t Get declared type (without resolving type references; they are returned as is).
|
| |
| "bool" | empty (self) |
| | empty(self) -> bool Was tinfo_t initialized with some type info or not?
|
| |
| "bool" | present (self) |
| | present(self) -> bool Is the type really present? (not a reference to a missing type, for example)
|
| |
| "size_t" | get_size (self, "uint32 *" p_effalign=None, "int" gts_code=0) |
| | get_size(self, p_effalign=None, gts_code=0) -> size_t Get the type size in bytes.
|
| |
| "size_t" | get_unpadded_size (self) |
| | get_unpadded_size(self) -> size_t Get the type size in bytes without the final padding, in bytes.
|
| |
| "type_sign_t" | get_sign (self) |
| | get_sign(self) -> type_sign_t Get type sign.
|
| |
| "bool" | is_signed (self) |
| | is_signed(self) -> bool Is this a signed type?
|
| |
| "bool" | is_unsigned (self) |
| | is_unsigned(self) -> bool Is this an unsigned type?
|
| |
| "uchar" | get_declalign (self) |
| | get_declalign(self) -> uchar Get declared alignment of the type.
|
| |
| "bool" | is_typeref (self) |
| | is_typeref(self) -> bool Is this type a type reference?.
|
| |
| "bool" | has_details (self) |
| | has_details(self) -> bool Does this type refer to a nontrivial type?
|
| |
| "bool" | get_type_name (self) |
| | get_type_name(self) -> bool Does a type refer to a name?.
|
| |
| "bool" | get_nice_type_name (self) |
| | get_nice_type_name(self) -> bool Get the beautified type name.
|
| |
| "tinfo_code_t" | rename_type (self, "char const *" name, "int" ntf_flags=0) |
| | rename_type(self, name, ntf_flags=0) -> tinfo_code_t Rename a type
|
| |
| "bool" | get_final_type_name (self) |
| | get_final_type_name(self) -> bool Use in the case of typedef chain (TYPE1 -> TYPE2 -> TYPE3...TYPEn).
|
| |
| "bool" | get_next_type_name (self) |
| | get_next_type_name(self) -> bool Use In the case of typedef chain (TYPE1 -> TYPE2 -> TYPE3...TYPEn).
|
| |
| "tid_t" | get_tid (self) |
| | get_tid(self) -> tid_t Get the type tid Each type in the local type library has a so-called tid associated with it.
|
| |
| "tid_t" | force_tid (self) |
| | force_tid(self) -> tid_t Get the type tid.
|
| |
| "uint32" | get_ordinal (self) |
| | get_ordinal(self) -> uint32 Get type ordinal (only if the type was created as a numbered type, 0 if none)
|
| |
| "uint32" | get_final_ordinal (self) |
| | get_final_ordinal(self) -> uint32 Get final type ordinal (0 if none)
|
| |
| "til_t *" | get_til (self) |
| | get_til(self) -> til_t Get the type library for tinfo_t.
|
| |
| "bool" | is_from_subtil (self) |
| | is_from_subtil(self) -> bool Was the named type found in some base type library (not the top level type library)?.
|
| |
| "bool" | is_forward_decl (self) |
| | is_forward_decl(self) -> bool Is this a forward declaration?.
|
| |
| "type_t" | get_forward_type (self) |
| | get_forward_type(self) -> type_t Get type of a forward declaration.
|
| |
| "bool" | is_forward_struct (self) |
| | is_forward_struct(self) -> bool
|
| |
| "bool" | is_forward_union (self) |
| | is_forward_union(self) -> bool
|
| |
| "bool" | is_forward_enum (self) |
| | is_forward_enum(self) -> bool
|
| |
| "bool" | is_typedef (self) |
| | is_typedef(self) -> bool Is this a typedef?.
|
| |
| "int" | get_type_cmt (self) |
| | get_type_cmt(self) -> int Get type comment
|
| |
| "bool" | get_type_rptcmt (self) |
| | get_type_rptcmt(self) -> bool Get type comment only if it is repeatable.
|
| |
| "bool" | is_decl_const (self) |
| | is_decl_const(self) -> bool is_type_const(get_decltype())
|
| |
| "bool" | is_decl_volatile (self) |
| | is_decl_volatile(self) -> bool is_type_volatile(get_decltype())
|
| |
| "bool" | is_decl_void (self) |
| | is_decl_void(self) -> bool is_type_void(get_decltype())
|
| |
| "bool" | is_decl_partial (self) |
| | is_decl_partial(self) -> bool is_type_partial(get_decltype())
|
| |
| "bool" | is_decl_unknown (self) |
| | is_decl_unknown(self) -> bool is_type_unknown(get_decltype())
|
| |
| "bool" | is_decl_last (self) |
| | is_decl_last(self) -> bool is_typeid_last(get_decltype())
|
| |
| "bool" | is_decl_ptr (self) |
| | is_decl_ptr(self) -> bool is_type_ptr(get_decltype())
|
| |
| "bool" | is_decl_array (self) |
| | is_decl_array(self) -> bool is_type_array(get_decltype())
|
| |
| "bool" | is_decl_func (self) |
| | is_decl_func(self) -> bool is_type_func(get_decltype())
|
| |
| "bool" | is_decl_complex (self) |
| | is_decl_complex(self) -> bool is_type_complex(get_decltype())
|
| |
| "bool" | is_decl_typedef (self) |
| | is_decl_typedef(self) -> bool is_type_typedef(get_decltype())
|
| |
| "bool" | is_decl_sue (self) |
| | is_decl_sue(self) -> bool is_type_sue(get_decltype())
|
| |
| "bool" | is_decl_struct (self) |
| | is_decl_struct(self) -> bool is_type_struct(get_decltype())
|
| |
| "bool" | is_decl_union (self) |
| | is_decl_union(self) -> bool is_type_union(get_decltype())
|
| |
| "bool" | is_decl_udt (self) |
| | is_decl_udt(self) -> bool is_type_struni(get_decltype())
|
| |
| "bool" | is_decl_enum (self) |
| | is_decl_enum(self) -> bool is_type_enum(get_decltype())
|
| |
| "bool" | is_decl_bitfield (self) |
| | is_decl_bitfield(self) -> bool is_type_bitfld(get_decltype())
|
| |
| "bool" | is_decl_int128 (self) |
| | is_decl_int128(self) -> bool is_type_int128(get_decltype())
|
| |
| "bool" | is_decl_int64 (self) |
| | is_decl_int64(self) -> bool is_type_int64(get_decltype())
|
| |
| "bool" | is_decl_int32 (self) |
| | is_decl_int32(self) -> bool is_type_int32(get_decltype())
|
| |
| "bool" | is_decl_int16 (self) |
| | is_decl_int16(self) -> bool is_type_int16(get_decltype())
|
| |
| "bool" | is_decl_int (self) |
| | is_decl_int(self) -> bool is_type_int(get_decltype())
|
| |
| "bool" | is_decl_char (self) |
| | is_decl_char(self) -> bool is_type_char(get_decltype())
|
| |
| "bool" | is_decl_uint (self) |
| | is_decl_uint(self) -> bool is_type_uint(get_decltype())
|
| |
| "bool" | is_decl_uchar (self) |
| | is_decl_uchar(self) -> bool is_type_uchar(get_decltype())
|
| |
| "bool" | is_decl_uint16 (self) |
| | is_decl_uint16(self) -> bool is_type_uint16(get_decltype())
|
| |
| "bool" | is_decl_uint32 (self) |
| | is_decl_uint32(self) -> bool is_type_uint32(get_decltype())
|
| |
| "bool" | is_decl_uint64 (self) |
| | is_decl_uint64(self) -> bool is_type_uint64(get_decltype())
|
| |
| "bool" | is_decl_uint128 (self) |
| | is_decl_uint128(self) -> bool is_type_uint128(get_decltype())
|
| |
| "bool" | is_decl_ldouble (self) |
| | is_decl_ldouble(self) -> bool is_type_ldouble(get_decltype())
|
| |
| "bool" | is_decl_double (self) |
| | is_decl_double(self) -> bool is_type_double(get_decltype())
|
| |
| "bool" | is_decl_float (self) |
| | is_decl_float(self) -> bool is_type_float(get_decltype())
|
| |
| "bool" | is_decl_tbyte (self) |
| | is_decl_tbyte(self) -> bool is_type_tbyte(get_decltype())
|
| |
| "bool" | is_decl_floating (self) |
| | is_decl_floating(self) -> bool is_type_floating(get_decltype())
|
| |
| "bool" | is_decl_bool (self) |
| | is_decl_bool(self) -> bool is_type_bool(get_decltype())
|
| |
| "bool" | is_decl_paf (self) |
| | is_decl_paf(self) -> bool is_type_paf(get_decltype())
|
| |
| "bool" | is_well_defined (self) |
| | is_well_defined(self) -> bool !(empty()) && !(is_decl_partial()) && !(is_punknown())
|
| |
| "bool" | is_const (self) |
| | is_const(self) -> bool is_type_const(get_realtype())
|
| |
| "bool" | is_volatile (self) |
| | is_volatile(self) -> bool is_type_volatile(get_realtype())
|
| |
| "bool" | is_void (self) |
| | is_void(self) -> bool is_type_void(get_realtype())
|
| |
| "bool" | is_partial (self) |
| | is_partial(self) -> bool is_type_partial(get_realtype())
|
| |
| "bool" | is_unknown (self) |
| | is_unknown(self) -> bool is_type_unknown(get_realtype())
|
| |
| "bool" | is_ptr (self) |
| | is_ptr(self) -> bool is_type_ptr(get_realtype())
|
| |
| "bool" | is_array (self) |
| | is_array(self) -> bool is_type_array(get_realtype())
|
| |
| "bool" | is_func (self) |
| | is_func(self) -> bool is_type_func(get_realtype())
|
| |
| "bool" | is_complex (self) |
| | is_complex(self) -> bool is_type_complex(get_realtype())
|
| |
| "bool" | is_struct (self) |
| | is_struct(self) -> bool is_type_struct(get_realtype())
|
| |
| "bool" | is_union (self) |
| | is_union(self) -> bool is_type_union(get_realtype())
|
| |
| "bool" | is_udt (self) |
| | is_udt(self) -> bool is_type_struni(get_realtype())
|
| |
| "bool" | is_enum (self) |
| | is_enum(self) -> bool is_type_enum(get_realtype())
|
| |
| "bool" | is_sue (self) |
| | is_sue(self) -> bool is_type_sue(get_realtype())
|
| |
| "bool" | is_bitfield (self) |
| | is_bitfield(self) -> bool is_type_bitfld(get_realtype())
|
| |
| "bool" | is_int128 (self) |
| | is_int128(self) -> bool is_type_int128(get_realtype())
|
| |
| "bool" | is_int64 (self) |
| | is_int64(self) -> bool is_type_int64(get_realtype())
|
| |
| "bool" | is_int32 (self) |
| | is_int32(self) -> bool is_type_int32(get_realtype())
|
| |
| "bool" | is_int16 (self) |
| | is_int16(self) -> bool is_type_int16(get_realtype())
|
| |
| "bool" | is_int (self) |
| | is_int(self) -> bool is_type_int(get_realtype())
|
| |
| "bool" | is_char (self) |
| | is_char(self) -> bool is_type_char(get_realtype())
|
| |
| "bool" | is_uint (self) |
| | is_uint(self) -> bool is_type_uint(get_realtype())
|
| |
| "bool" | is_uchar (self) |
| | is_uchar(self) -> bool is_type_uchar(get_realtype())
|
| |
| "bool" | is_uint16 (self) |
| | is_uint16(self) -> bool is_type_uint16(get_realtype())
|
| |
| "bool" | is_uint32 (self) |
| | is_uint32(self) -> bool is_type_uint32(get_realtype())
|
| |
| "bool" | is_uint64 (self) |
| | is_uint64(self) -> bool is_type_uint64(get_realtype())
|
| |
| "bool" | is_uint128 (self) |
| | is_uint128(self) -> bool is_type_uint128(get_realtype())
|
| |
| "bool" | is_ldouble (self) |
| | is_ldouble(self) -> bool is_type_ldouble(get_realtype())
|
| |
| "bool" | is_double (self) |
| | is_double(self) -> bool is_type_double(get_realtype())
|
| |
| "bool" | is_float (self) |
| | is_float(self) -> bool is_type_float(get_realtype())
|
| |
| "bool" | is_tbyte (self) |
| | is_tbyte(self) -> bool is_type_tbyte(get_realtype())
|
| |
| "bool" | is_bool (self) |
| | is_bool(self) -> bool is_type_bool(get_realtype())
|
| |
| "bool" | is_paf (self) |
| | is_paf(self) -> bool is_type_paf(get_realtype())
|
| |
| "bool" | is_ptr_or_array (self) |
| | is_ptr_or_array(self) -> bool is_type_ptr_or_array(get_realtype())
|
| |
| "bool" | is_integral (self) |
| | is_integral(self) -> bool is_type_integral(get_realtype())
|
| |
| "bool" | is_ext_integral (self) |
| | is_ext_integral(self) -> bool is_type_ext_integral(get_realtype())
|
| |
| "bool" | is_floating (self) |
| | is_floating(self) -> bool is_type_floating(get_realtype())
|
| |
| "bool" | is_arithmetic (self) |
| | is_arithmetic(self) -> bool is_type_arithmetic(get_realtype())
|
| |
| "bool" | is_ext_arithmetic (self) |
| | is_ext_arithmetic(self) -> bool is_type_ext_arithmetic(get_realtype())
|
| |
| "bool" | is_scalar (self) |
| | is_scalar(self) -> bool Does the type represent a single number?
|
| |
| "bool" | get_ptr_details (self, "ptr_type_data_t" pi) |
| | get_ptr_details(self, pi) -> bool Get the pointer info.
|
| |
| "bool" | get_array_details (self, "array_type_data_t" ai) |
| | get_array_details(self, ai) -> bool Get the array specific info.
|
| |
| "bool" | get_enum_details (self, "enum_type_data_t" ei) |
| | get_enum_details(self, ei) -> bool Get the enum specific info.
|
| |
| "bool" | get_bitfield_details (self, "bitfield_type_data_t" bi) |
| | get_bitfield_details(self, bi) -> bool Get the bitfield specific info.
|
| |
| "bool" | get_udt_details (self, "udt_type_data_t" udt, "gtd_udt_t" gtd=GTD_CALC_LAYOUT) |
| | get_udt_details(self, udt, gtd=GTD_CALC_LAYOUT) -> bool Get the udt specific info.
|
| |
| "bool" | get_func_details (self, "func_type_data_t" fi, "gtd_func_t" gtd=GTD_CALC_ARGLOCS) |
| | get_func_details(self, fi, gtd=GTD_CALC_ARGLOCS) -> bool Get only the function specific info for this tinfo_t.
|
| |
| "bool" | is_funcptr (self) |
| | is_funcptr(self) -> bool Is this pointer to a function?
|
| |
| "bool" | is_shifted_ptr (self) |
| | is_shifted_ptr(self) -> bool Is a shifted pointer?
|
| |
| "bool" | is_varstruct (self) |
| | is_varstruct(self) -> bool Is a variable-size structure?
|
| |
| "bool" | is_varmember (self) |
| | is_varmember(self) -> bool Can the type be of a variable struct member? This function checks for: is_array() && array.nelems==0 Such a member can be only the very last member of a structure
|
| |
| "int" | get_ptrarr_objsize (self) |
| | get_ptrarr_objsize(self) -> int BT_PTR & BT_ARRAY: get size of pointed object or array element.
|
| |
| "tinfo_t" | get_ptrarr_object (self) |
| | get_ptrarr_object(self) -> tinfo_t BT_PTR & BT_ARRAY: get the pointed object or array element.
|
| |
| "tinfo_t" | get_pointed_object (self) |
| | get_pointed_object(self) -> tinfo_t
|
| |
| "bool" | is_pvoid (self) |
| | is_pvoid(self) -> bool Is "void *"?.
|
| |
| "bool" | is_punknown (self) |
| | is_punknown(self) -> bool Is "_UNKNOWN *"?.
|
| |
| "tinfo_t" | get_array_element (self) |
| | get_array_element(self) -> tinfo_t
|
| |
| "tinfo_t" | get_final_element (self) |
| | get_final_element(self) -> tinfo_t repeat recursively: if an array, return the type of its element; else return the type itself.
|
| |
| "int" | get_array_nelems (self) |
| | get_array_nelems(self) -> int
|
| |
| "tinfo_t" | get_nth_arg (self, "int" n) |
| | get_nth_arg(self, n) -> tinfo_t BT_FUNC or BT_PTR BT_FUNC: Get type of n-th arg (-1 means return type, see get_rettype())
|
| |
| "tinfo_t" | get_rettype (self) |
| | get_rettype(self) -> tinfo_t BT_FUNC or BT_PTR BT_FUNC: Get the function's return type
|
| |
| "int" | get_nargs (self) |
| | get_nargs(self) -> int BT_FUNC or BT_PTR BT_FUNC: Calculate number of arguments (-1 - error)
|
| |
| "bool" | is_user_cc (self) |
| | is_user_cc(self) -> bool is_user_cc(get_cc())
|
| |
| "bool" | is_vararg_cc (self) |
| | is_vararg_cc(self) -> bool is_vararg_cc(get_cc())
|
| |
| "bool" | is_purging_cc (self) |
| | is_purging_cc(self) -> bool is_purging_cc(get_cc())
|
| |
| "int" | calc_purged_bytes (self) |
| | calc_purged_bytes(self) -> int
|
| |
| "bool" | is_high_func (self) |
| | is_high_func(self) -> bool
|
| |
| "bool" | get_methods (self, "udtmembervec_t" methods) |
| | get_methods(self, methods) -> bool
|
| |
| "bool" | get_bit_buckets (self, "range64vec_t" buckets) |
| | get_bit_buckets(self, buckets) -> bool ::BT_STRUCT: get bit buckets Bit buckets are used to layout bitfields
|
| |
| "int" | find_udm (self, *args) |
| | find_udm(self, udm, strmem_flags) -> int BTF_STRUCT,BTF_UNION: Find an udt member by name
|
| |
| "int" | get_udt_nmembers (self) |
| | get_udt_nmembers(self) -> int Get number of udt members.
|
| |
| "bool" | is_empty_udt (self) |
| | is_empty_udt(self) -> bool Is an empty struct/union? (has no fields)
|
| |
| "bool" | is_small_udt (self) |
| | is_small_udt(self) -> bool Is a small udt? (can fit a register or a pair of registers)
|
| |
| "bool" | requires_qualifier (self, "char const *" name, "uint64" offset) |
| | requires_qualifier(self, name, offset) -> bool Requires full qualifier? (name is not unique)
|
| |
| "bool" | append_covered (self, "rangeset_t" out, "uint64" offset=0) |
| | append_covered(self, out, offset=0) -> bool Calculate set of covered bytes for the type
|
| |
| "bool" | calc_gaps (self, "rangeset_t" out) |
| | calc_gaps(self, out) -> bool Calculate set of padding bytes for the type
|
| |
| "bool" | is_one_fpval (self) |
| | is_one_fpval(self) -> bool Floating value or an object consisting of one floating member entirely.
|
| |
| "bool" | is_sse_type (self) |
| | is_sse_type(self) -> bool Is a SSE vector type?
|
| |
| "bool" | is_anonymous_udt (self) |
| | is_anonymous_udt(self) -> bool Is an anonymous struct/union? We assume that types with names are anonymous if the name starts with $
|
| |
| "bool" | is_vftable (self) |
| | is_vftable(self) -> bool Is a vftable type?
|
| |
| "bool" | has_vftable (self) |
| | has_vftable(self) -> bool Has a vftable?
|
| |
| "bool" | has_union (self) |
| | has_union(self) -> bool Has a member of type "union"?
|
| |
| "size_t" | get_enum_nmembers (self) |
| | get_enum_nmembers(self) -> size_t Get number of enum members.
|
| |
| "bool" | is_empty_enum (self) |
| | is_empty_enum(self) -> bool Is an empty enum? (has no constants)
|
| |
| "type_t" | get_enum_base_type (self) |
| | get_enum_base_type(self) -> type_t Get enum base type (convert enum to integer type) Returns BT_UNK if failed to convert
|
| |
| "bool" | is_bitmask_enum (self) |
| | is_bitmask_enum(self) -> bool Is bitmask enum?
|
| |
| "int" | get_enum_radix (self) |
| | get_enum_radix(self) -> int Get enum constant radix
|
| |
| "tinfo_code_t" | get_enum_repr (self, "value_repr_t" repr) |
| | get_enum_repr(self, repr) -> tinfo_code_t Set the representation of enum members.
|
| |
| "int" | get_enum_width (self) |
| | get_enum_width(self) -> int Get enum width
|
| |
| "uint64" | calc_enum_mask (self) |
| | calc_enum_mask(self) -> uint64
|
| |
| "tinfo_code_t" | get_edm (self, "edm_t" edm, "size_t" idx) |
| | get_edm(self, edm, idx) -> tinfo_code_t Get enum member
|
| |
| "ssize_t" | find_edm (self, *args) |
| | find_edm(self, edm, value, bmask=bmask64_t(-1), serial=0) -> ssize_t Find enum member
|
| |
| "tid_t" | get_edm_tid (self, "size_t" idx) |
| | get_edm_tid(self, idx) -> tid_t Get enum member TID
|
| |
| "tinfo_t" | get_onemember_type (self) |
| | get_onemember_type(self) -> tinfo_t For objects consisting of one member entirely: return type of the member.
|
| |
| "tinfo_t" | get_innermost_udm (self, "uint64" bitoffset) |
| | get_innermost_udm(self, bitoffset) -> tinfo_t Get the innermost member at the given offset
|
| |
| "tinfo_t" | get_innermost_member_type (self, "uint64" bitoffset) |
| | get_innermost_member_type(self, bitoffset) -> tinfo_t Get the innermost member type at the given offset
|
| |
| "uint32" | calc_score (self) |
| | calc_score(self) -> uint32 Calculate the type score (the higher - the nicer is the type)
|
| |
| "char const *" | dstr (self) |
| | dstr(self) -> char const * Function to facilitate debugging.
|
| |
| "bool" | get_attrs (self, "type_attrs_t" tav, "bool" all_attrs=False) |
| | get_attrs(self, tav, all_attrs=False) -> bool Get type attributes (all_attrs: include attributes of referenced types, if any)
|
| |
| "bool" | set_attrs (self, "type_attrs_t" tav) |
| | set_attrs(self, tav) -> bool Set type attributes.
|
| |
| "bool" | set_attr (self, "type_attr_t" ta, "bool" may_overwrite=True) |
| | set_attr(self, ta, may_overwrite=True) -> bool Set a type attribute.
|
| |
| "void" | del_attrs (self) |
| | del_attrs(self) Del all type attributes.
|
| |
| "bool" | del_attr (self, "qstring const &" key, "bool" make_copy=True) |
| | del_attr(self, key, make_copy=True) -> bool Del a type attribute.
|
| |
| "bool" | create_simple_type (self, "type_t" decl_type) |
| | create_simple_type(self, decl_type) -> bool
|
| |
| "bool" | create_ptr (self, *args) |
| | create_ptr(self, p, decl_type=BT_PTR) -> bool
|
| |
| "bool" | create_array (self, *args) |
| | create_array(self, p, decl_type=BT_ARRAY) -> bool
|
| |
| "void" | create_typedef (self, *args) |
| | create_typedef(self, p, decl_type=BTF_TYPEDEF, try_ordinal=True) -> bool
|
| |
| "bool" | create_bitfield (self, *args) |
| | create_bitfield(self, p, decl_type=BT_BITFIELD) -> bool
|
| |
| "bool" | parse (self, "char const *" decl, "til_t" til=None, "int" pt_flags=0) |
| | parse(self, decl, til=None, pt_flags=0) -> bool Convenience function to parse a string with a type declaration
|
| |
| "bool" | create_udt (self, *args) |
| | create_udt(self, p) -> bool
|
| |
| "bool" | create_enum (self, *args) |
| | create_enum(self, p, decl_type=BTF_ENUM) -> bool
|
| |
| "bool" | create_func (self, *args) |
| | create_func(self, p, decl_type=BT_FUNC) -> bool
|
| |
| "ssize_t" | get_udm_by_tid (self, "udm_t" udm, "tid_t" tid) |
| | get_udm_by_tid(self, udm, tid) -> ssize_t Retrive tinfo using type TID or struct/enum member MID
|
| |
| "ssize_t" | get_edm_by_tid (self, "edm_t" edm, "tid_t" tid) |
| | get_edm_by_tid(self, edm, tid) -> ssize_t
|
| |
| "bool" | get_type_by_tid (self, "tid_t" tid) |
| | get_type_by_tid(self, tid) -> bool
|
| |
| "ssize_t" | get_edm_by_name (self, "char const *" mname, "til_t" til=None) |
| | get_edm_by_name(self, mname, til=None) -> ssize_t Retrieve enum tinfo using enum member name
|
| |
| "tinfo_code_t" | set_named_type (self, "til_t" til, "char const *" name, "int" ntf_flags=0) |
| | set_named_type(self, til, name, ntf_flags=0) -> tinfo_code_t
|
| |
| "tinfo_code_t" | set_symbol_type (self, "til_t" til, "char const *" name, "int" ntf_flags=0) |
| | set_symbol_type(self, til, name, ntf_flags=0) -> tinfo_code_t
|
| |
| "tinfo_code_t" | set_numbered_type (self, "til_t" til, "uint32" ord, "int" ntf_flags=0, "char const *" name=None) |
| | set_numbered_type(self, til, ord, ntf_flags=0, name=None) -> tinfo_code_t
|
| |
| "tinfo_code_t" | save_type (self, *args) |
| | save_type(self, ntf_flags=0x0001|0x0004) -> tinfo_code_t
|
| |
| "tinfo_code_t" | copy_type (self, *args) |
| | copy_type(self, til, name, ntf_flags=0x0001|0x1000) -> tinfo_code_t
|
| |
| "tinfo_code_t" | create_forward_decl (self, "til_t" til, "type_t" decl_type, "char const *" name, "int" ntf_flags=0) |
| | create_forward_decl(self, til, decl_type, name, ntf_flags=0) -> tinfo_code_t Create a forward declaration.
|
| |
| "bool" | convert_array_to_ptr (self) |
| | convert_array_to_ptr(self) -> bool Convert an array into a pointer.
|
| |
| "bool" | remove_ptr_or_array (self) |
| | remove_ptr_or_array(self) -> bool Replace the current type with the ptr obj or array element.
|
| |
| "uint64" | read_bitfield_value (self, "uint64" v, "int" bitoff) |
| | read_bitfield_value(self, v, bitoff) -> uint64
|
| |
| "uint64" | write_bitfield_value (self, "uint64" dst, "uint64" v, "int" bitoff) |
| | write_bitfield_value(self, dst, v, bitoff) -> uint64
|
| |
| "type_t" | get_modifiers (self) |
| | get_modifiers(self) -> type_t
|
| |
| "void" | set_modifiers (self, "type_t" mod) |
| | set_modifiers(self, mod)
|
| |
| "void" | set_const (self) |
| | set_const(self)
|
| |
| "void" | set_volatile (self) |
| | set_volatile(self)
|
| |
| "void" | clr_decl_const_volatile (self) |
| | clr_decl_const_volatile(self)
|
| |
| "bool" | clr_const (self) |
| | clr_const(self) -> bool
|
| |
| "bool" | clr_volatile (self) |
| | clr_volatile(self) -> bool
|
| |
| "bool" | clr_const_volatile (self) |
| | clr_const_volatile(self) -> bool
|
| |
| "tinfo_code_t" | set_type_alignment (self, "uchar" declalign, "uint" etf_flags=0) |
| | set_type_alignment(self, declalign, etf_flags=0) -> tinfo_code_t Set type alignment.
|
| |
| "bool" | set_declalign (self, "uchar" declalign) |
| | set_declalign(self, declalign) -> bool
|
| |
| "bool" | change_sign (self, "type_sign_t" sign) |
| | change_sign(self, sign) -> bool Change the type sign.
|
| |
| "bool" | calc_udt_aligns (self, "int" sudt_flags=0x0004) |
| | calc_udt_aligns(self, sudt_flags=0x0004) -> bool Calculate the udt alignments using the field offsets/sizes and the total udt size This function does not work on typerefs
|
| |
| "bool" | set_methods (self, "udtmembervec_t" methods) |
| | set_methods(self, methods) -> bool
|
| |
| "tinfo_code_t" | set_type_cmt (self, "char const *" cmt, "bool" is_regcmt=False, "uint" etf_flags=0) |
| | set_type_cmt(self, cmt, is_regcmt=False, etf_flags=0) -> tinfo_code_t Set type comment This function works only for non-trivial types
|
| |
| "uint32" | get_alias_target (self) |
| | get_alias_target(self) -> uint32 Get type alias If the type has no alias, return 0.
|
| |
| "bool" | is_aliased (self) |
| | is_aliased(self) -> bool
|
| |
| "bool" | set_type_alias (self, "uint32" dest_ord) |
| | set_type_alias(self, dest_ord) -> bool Set type alias Redirects all references to source type to the destination type.
|
| |
| "tinfo_code_t" | set_udt_alignment (self, "int" sda, "uint" etf_flags=0) |
| | set_udt_alignment(self, sda, etf_flags=0) -> tinfo_code_t Set declared structure alignment (sda) This alignment supersedes the alignment returned by get_declalign() and is really used when calculating the struct layout.
|
| |
| "tinfo_code_t" | set_udt_pack (self, "int" pack, "uint" etf_flags=0) |
| | set_udt_pack(self, pack, etf_flags=0) -> tinfo_code_t Set structure packing.
|
| |
| "tid_t" | get_udm_tid (self, "size_t" idx) |
| | get_udm_tid(self, idx) -> tid_t Get udt member TID
|
| |
| "tinfo_code_t" | add_udm (self, "udm_t" udm, "uint" etf_flags=0, "size_t" times=1, "ssize_t" idx=-1) |
| | add_udm(self, udm, etf_flags=0, times=1, idx=-1) -> tinfo_code_t Add a structure/union member.
|
| |
| "tinfo_code_t" | del_udm (self, "size_t" index, "uint" etf_flags=0) |
| | del_udm(self, index, etf_flags=0) -> tinfo_code_t Delete a structure/union member.
|
| |
| "tinfo_code_t" | del_udms (self, "size_t" idx1, "size_t" idx2, "uint" etf_flags=0) |
| | del_udms(self, idx1, idx2, etf_flags=0) -> tinfo_code_t Delete structure/union members in the range [idx1, idx2)
|
| |
| "tinfo_code_t" | rename_udm (self, "size_t" index, "char const *" name, "uint" etf_flags=0) |
| | rename_udm(self, index, name, etf_flags=0) -> tinfo_code_t Rename a structure/union member.
|
| |
| "tinfo_code_t" | set_udm_type (self, "size_t" index, "tinfo_t" tif, "uint" etf_flags=0, "value_repr_t" repr=None) |
| | set_udm_type(self, index, tif, etf_flags=0, repr=None) -> tinfo_code_t Set type of a structure/union member.
|
| |
| "tinfo_code_t" | set_udm_cmt (self, "size_t" index, "char const *" cmt, "bool" is_regcmt=False, "uint" etf_flags=0) |
| | set_udm_cmt(self, index, cmt, is_regcmt=False, etf_flags=0) -> tinfo_code_t Set a comment for a structure/union member.
|
| |
| "tinfo_code_t" | set_udm_repr (self, "size_t" index, "value_repr_t" repr, "uint" etf_flags=0) |
| | set_udm_repr(self, index, repr, etf_flags=0) -> tinfo_code_t Set the representation of a structure/union member.
|
| |
| "bool" | is_udm_by_til (self, "size_t" idx) |
| | is_udm_by_til(self, idx) -> bool Was the member created due to the type system
|
| |
| "tinfo_code_t" | set_udm_by_til (self, "size_t" idx, "bool" on=True, "uint" etf_flags=0) |
| | set_udm_by_til(self, idx, on=True, etf_flags=0) -> tinfo_code_t The member is created due to the type system
|
| |
| "tinfo_code_t" | set_fixed_struct (self, "bool" on=True) |
| | set_fixed_struct(self, on=True) -> tinfo_code_t Declare struct member offsets as fixed.
|
| |
| "tinfo_code_t" | set_struct_size (self, "size_t" new_size) |
| | set_struct_size(self, new_size) -> tinfo_code_t Explicitly specify the struct size.
|
| |
| "bool" | is_fixed_struct (self) |
| | is_fixed_struct(self) -> bool Is a structure with fixed offsets?
|
| |
| "tinfo_code_t" | expand_udt (self, "size_t" idx, "adiff_t" delta, "uint" etf_flags=0) |
| | expand_udt(self, idx, delta, etf_flags=0) -> tinfo_code_t Expand/shrink a structure by adding/removing a gap before the specified member.
|
| |
| "bool" | get_func_frame (self, "func_t const *" pfn) |
| | get_func_frame(self, pfn) -> bool Create a tinfo_t object for the function frame
|
| |
| "bool" | is_frame (self) |
| | is_frame(self) -> bool Is a function frame?
|
| |
| "ea_t" | get_frame_func (self) |
| | get_frame_func(self) -> ea_t Get function address for the frame.
|
| |
| "tinfo_code_t" | set_enum_width (self, "int" nbytes, "uint" etf_flags=0) |
| | set_enum_width(self, nbytes, etf_flags=0) -> tinfo_code_t Set the width of enum base type
|
| |
| "tinfo_code_t" | set_enum_sign (self, "type_sign_t" sign, "uint" etf_flags=0) |
| | set_enum_sign(self, sign, etf_flags=0) -> tinfo_code_t Set enum sign
|
| |
| "tinfo_code_t" | set_enum_is_bitmask (self, *args) |
| | set_enum_is_bitmask(self, stance=ENUMBM_ON, etf_flags=0) -> tinfo_code_t
|
| |
| "tinfo_code_t" | set_enum_repr (self, "value_repr_t" repr, "uint" etf_flags=0) |
| | set_enum_repr(self, repr, etf_flags=0) -> tinfo_code_t Set the representation of enum members.
|
| |
| "tinfo_code_t" | set_enum_radix (self, "int" radix, "bool" sign, "uint" etf_flags=0) |
| | set_enum_radix(self, radix, sign, etf_flags=0) -> tinfo_code_t Set enum radix to display constants
|
| |
| "tinfo_code_t" | add_edm (self, *args) |
| | add_edm(self, edm, bmask=bmask64_t(-1), etf_flags=0, idx=-1) -> tinfo_code_t Add a new enum member (a new symbolic constant)
|
| |
| "tinfo_code_t" | del_edms (self, "size_t" idx1, "size_t" idx2, "uint" etf_flags=0) |
| | del_edms(self, idx1, idx2, etf_flags=0) -> tinfo_code_t Delete enum members
|
| |
| "tinfo_code_t" | del_edm (self, "size_t" idx, "uint" etf_flags=0) |
| | del_edm(self, idx, etf_flags=0) -> tinfo_code_t
|
| |
| "tinfo_code_t" | rename_edm (self, "size_t" idx, "char const *" name, "uint" etf_flags=0) |
| | rename_edm(self, idx, name, etf_flags=0) -> tinfo_code_t Rename a enum member
|
| |
| "tinfo_code_t" | set_edm_cmt (self, "size_t" idx, "char const *" cmt, "uint" etf_flags=0) |
| | set_edm_cmt(self, idx, cmt, etf_flags=0) -> tinfo_code_t Set a comment for an enum member.
|
| |
| "tinfo_code_t" | edit_edm (self, *args) |
| | edit_edm(self, idx, value, bmask=bmask64_t(-1), etf_flags=0) -> tinfo_code_t Change constant value and/or bitmask
|
| |
| "tinfo_code_t" | rename_funcarg (self, "size_t" index, "char const *" name, "uint" etf_flags=0) |
| | rename_funcarg(self, index, name, etf_flags=0) -> tinfo_code_t Rename a function argument.
|
| |
| "tinfo_code_t" | set_funcarg_type (self, "size_t" index, "tinfo_t" tif, "uint" etf_flags=0) |
| | set_funcarg_type(self, index, tif, etf_flags=0) -> tinfo_code_t Set type of a function argument.
|
| |
| "tinfo_code_t" | set_func_rettype (self, "tinfo_t" tif, "uint" etf_flags=0) |
| | set_func_rettype(self, tif, etf_flags=0) -> tinfo_code_t Set function return type .
|
| |
| "tinfo_code_t" | del_funcargs (self, "size_t" idx1, "size_t" idx2, "uint" etf_flags=0) |
| | del_funcargs(self, idx1, idx2, etf_flags=0) -> tinfo_code_t Delete function arguments
|
| |
| "tinfo_code_t" | del_funcarg (self, "size_t" idx, "uint" etf_flags=0) |
| | del_funcarg(self, idx, etf_flags=0) -> tinfo_code_t
|
| |
| "tinfo_code_t" | add_funcarg (self, "funcarg_t" farg, "uint" etf_flags=0, "ssize_t" idx=-1) |
| | add_funcarg(self, farg, etf_flags=0, idx=-1) -> tinfo_code_t Add a function argument.
|
| |
| "tinfo_code_t" | set_func_cc (self, "cm_t" cc, "uint" etf_flags=0) |
| | set_func_cc(self, cc, etf_flags=0) -> tinfo_code_t Set function calling convention.
|
| |
| "tinfo_code_t" | set_funcarg_loc (self, "size_t" index, "argloc_t" argloc, "uint" etf_flags=0) |
| | set_funcarg_loc(self, index, argloc, etf_flags=0) -> tinfo_code_t Set location of a function argument.
|
| |
| "tinfo_code_t" | set_func_retloc (self, "argloc_t" argloc, "uint" etf_flags=0) |
| | set_func_retloc(self, argloc, etf_flags=0) -> tinfo_code_t Set location of function return value.
|
| |
| "bool" | __eq__ (self, "tinfo_t" r) |
| | eq(self, r) -> bool
|
| |
| "bool" | __ne__ (self, "tinfo_t" r) |
| | ne(self, r) -> bool
|
| |
| "bool" | __lt__ (self, "tinfo_t" r) |
| | lt(self, r) -> bool
|
| |
| "bool" | __gt__ (self, "tinfo_t" r) |
| | gt(self, r) -> bool
|
| |
| "bool" | __le__ (self, "tinfo_t" r) |
| | le(self, r) -> bool
|
| |
| "bool" | __ge__ (self, "tinfo_t" r) |
| | ge(self, r) -> bool
|
| |
| "int" | compare (self, "tinfo_t" r) |
| | compare(self, r) -> int
|
| |
| "bool" | compare_with (self, "tinfo_t" r, "int" tcflags=0) |
| | compare_with(self, r, tcflags=0) -> bool Compare two types, based on given flags (see tinfo_t comparison flags)
|
| |
| "bool" | equals_to (self, "tinfo_t" r) |
| | equals_to(self, r) -> bool
|
| |
| "bool" | is_castable_to (self, "tinfo_t" target) |
| | is_castable_to(self, target) -> bool
|
| |
| "bool" | is_manually_castable_to (self, "tinfo_t" target) |
| | is_manually_castable_to(self, target) -> bool
|
| |
| "PyObject *" | serialize (self, *args) |
| | serialize(self, sudt_flags=SUDT_FAST|SUDT_TRUNC) -> PyObject Serialize tinfo_t object into a type string.
|
| |
| "bool" | deserialize (self, *args) |
| | deserialize(self, til, ptype, pfields=None, pfldcmts=None, cmt=None) -> bool Deserialize a type string into a tinfo_t object.
|
| |
| "ssize_t" | get_stkvar (self, "insn_t const &" insn, "op_t const" x, "sval_t" v) |
| | get_stkvar(self, insn, x, v) -> ssize_t Retrieve frame tinfo for a stack variable
|
| |
| "tinfo_t" | copy (self) |
| | copy(self) -> tinfo_t
|
| |
| "qstring" | __str__ (self) |
| | str(self) -> qstring
|
| |
| "PyObject *" | get_attr (self, "qstring const &" key, "bool" all_attrs=True) |
| | get_attr(self, key, all_attrs=True) -> PyObject Get a type attribute.
|
| |