Type in binaryninja::types - Rust

Source

pub unsafe fn from_raw(handle: *mut BNType) -> Self

Source

pub unsafe fn ref_from_raw(handle: *mut BNType) -> Ref<Self>

Source

pub fn to_builder(&self) -> TypeBuilder

Source

pub fn type_class(&self) -> TypeClass

Source

pub fn width(&self) -> u64

Source

pub fn alignment(&self) -> usize

Source

pub fn is_signed(&self) -> Conf<bool>

Source

pub fn is_const(&self) -> Conf<bool>

Source

pub fn is_volatile(&self) -> Conf<bool>

Source

pub fn is_floating_point(&self) -> bool

Source

pub fn child_type(&self) -> Option<Conf<Ref<Type>>>

Source

pub fn target(&self) -> Option<Conf<Ref<Type>>>

Source

pub fn element_type(&self) -> Option<Conf<Ref<Type>>>

Source

pub fn return_value(&self) -> Option<Conf<Ref<Type>>>

Source

pub fn calling_convention(&self) -> Option<Conf<Ref<CoreCallingConvention>>>

Source

pub fn parameters(&self) -> Option<Vec<FunctionParameter>>

Source

pub fn has_variable_arguments(&self) -> Conf<bool>

Source

pub fn can_return(&self) -> Conf<bool>

Source

pub fn pure(&self) -> Conf<bool>

Source

pub fn get_structure(&self) -> Option<Ref<Structure>>

Source

pub fn get_enumeration(&self) -> Option<Ref<Enumeration>>

Source

pub fn get_named_type_reference(&self) -> Option<Ref<NamedTypeReference>>

Source

pub fn count(&self) -> u64

Source

pub fn offset(&self) -> u64

Source

pub fn stack_adjustment(&self) -> Conf<i64>

Source

pub fn registered_name(&self) -> Option<Ref<NamedTypeReference>>

Source

pub fn pointer_base_type(&self) -> BNPointerBaseType

Source

pub fn pointer_base_offset(&self) -> i64

Source

pub fn void() -> Ref<Self>

Source

pub fn bool() -> Ref<Self>

Source

pub fn char() -> Ref<Self>

Source

pub fn wide_char(width: usize) -> Ref<Self>

Source

pub fn int(width: usize, is_signed: bool) -> Ref<Self>

Source

pub fn named_int(width: usize, is_signed: bool, alt_name: &str) -> Ref<Self>

Source

pub fn float(width: usize) -> Ref<Self>

Source

pub fn named_float(width: usize, alt_name: &str) -> Ref<Self>

Source

pub fn array<'a, T: Into<Conf<&'a Type>>>(ty: T, count: u64) -> Ref<Self>

Source

pub fn enumeration<T: Into<Conf<bool>>>( enumeration: &Enumeration, width: NonZeroUsize, is_signed: T, ) -> Ref<Self>

§NOTE

The C/C++ APIs require an associated architecture, but in the core we only query the default_int_size if the given width is 0.

For simplicity’s sake, that convention isn’t followed, and you can query Architecture::default_integer_size if you need to.

Source

pub fn structure(structure: &Structure) -> Ref<Self>

Source

pub fn named_type(type_reference: &NamedTypeReference) -> Ref<Self>

Source

pub fn named_type_from_type<T: Into<QualifiedName>>( name: T, t: &Type, ) -> Ref<Self>

Source

pub fn function<'a, T: Into<Conf<&'a Type>>>( return_type: T, parameters: Vec<FunctionParameter>, variable_arguments: bool, ) -> Ref<Self>

Source

pub fn function_with_opts<'a, T: Into<Conf<&'a Type>>, C: Into<Conf<Ref<CoreCallingConvention>>>>( return_type: T, parameters: &[FunctionParameter], variable_arguments: bool, calling_convention: C, stack_adjust: Conf<i64>, ) -> Ref<Self>

Source

pub fn pointer<'a, A: Architecture, T: Into<Conf<&'a Type>>>( arch: &A, ty: T, ) -> Ref<Self>

Source

pub fn const_pointer<'a, A: Architecture, T: Into<Conf<&'a Type>>>( arch: &A, ty: T, ) -> Ref<Self>

Source

pub fn pointer_of_width<'a, T: Into<Conf<&'a Type>>>( ty: T, size: usize, is_const: bool, is_volatile: bool, ref_type: Option<ReferenceType>, ) -> Ref<Self>

Source

pub fn pointer_with_options<'a, A: Architecture, T: Into<Conf<&'a Type>>>( arch: &A, ty: T, is_const: bool, is_volatile: bool, ref_type: Option<ReferenceType>, ) -> Ref<Self>

Source

pub fn generate_auto_demangled_type_id<T: Into<QualifiedName>>( name: T, ) -> String