Platform in binaryninja::platform - Rust

Source

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

Source

pub fn by_name(name: &str) -> Option<Ref<Self>>

Source

pub fn list_all() -> Array<Platform>

Source

pub fn list_by_arch(arch: &CoreArchitecture) -> Array<Platform>

Source

pub fn list_by_os(name: &str) -> Array<Platform>

Source

pub fn list_by_os_and_arch( name: &str, arch: &CoreArchitecture, ) -> Array<Platform>

Source

pub fn list_available_os() -> Array<BnString>

Source

pub fn new<A: Architecture>(arch: &A, name: &str) -> Ref<Self>

Source

pub fn name(&self) -> String

Source

pub fn arch(&self) -> CoreArchitecture

Source

pub fn type_container(&self) -> TypeContainer

Source

pub fn get_type_libraries_by_name(&self, name: &str) -> Array<TypeLibrary>

Get all the type libraries that have been registered with the name.

NOTE: This is a list because libraries can have alternate_names, use Platform::get_type_library_by_name if you want to get the type library with that name, skipping alternate names.

Source

pub fn get_type_library_by_name(&self, name: &str) -> Option<Ref<TypeLibrary>>

Get the type library with the given name.

NOTE: This finds the first type library that has the given name, skipping alternate names.

Source

pub fn register_os(&self, os: &str)

Source

pub fn get_default_calling_convention( &self, ) -> Option<Ref<CoreCallingConvention>>

Source

pub fn set_default_calling_convention(&self, cc: &CoreCallingConvention)

Source

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

Source

pub fn set_cdecl_calling_convention(&self, cc: &CoreCallingConvention)

Source

pub fn get_stdcall_calling_convention( &self, ) -> Option<Ref<CoreCallingConvention>>

Source

pub fn set_stdcall_calling_convention(&self, cc: &CoreCallingConvention)

Source

pub fn get_fastcall_calling_convention( &self, ) -> Option<Ref<CoreCallingConvention>>

Source

pub fn set_fastcall_calling_convention(&self, cc: &CoreCallingConvention)

Source

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

Source

pub fn set_syscall_convention(&self, cc: &CoreCallingConvention)

Source

pub fn calling_conventions(&self) -> Array<CoreCallingConvention>

Source

pub fn types(&self) -> Array<QualifiedNameAndType>

Source

pub fn variables(&self) -> Array<QualifiedNameAndType>

Source

pub fn functions(&self) -> Array<QualifiedNameAndType>

Source

pub fn preprocess_source( &self, source: &str, file_name: &str, include_dirs: &[BnString], ) -> Result<BnString, TypeParserError>

Source

pub fn parse_types_from_source( &self, src: &str, filename: &str, include_dirs: &[BnString], auto_type_source: &str, ) -> Result<TypeParserResult, TypeParserError>

Source

pub fn parse_types_from_source_file( &self, filename: &str, include_dirs: &[BnString], auto_type_source: &str, ) -> Result<TypeParserResult, TypeParserError>