diff options
| author | Glenn Smith <glenn@vector35.com> | 2022-11-30 18:33:49 -0500 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2022-11-30 18:35:18 -0500 |
| commit | 1e49bcf11fcb2e42fa2eee94e2cc02dcafb573c9 (patch) | |
| tree | f97dc0f642f65d8e92379849daddf576dd269c95 /rust/src/types.rs | |
| parent | d9a0b4e14ee9df749ad685fa723d537552627012 (diff) | |
[Rust API] BinaryView.get_types() etc
Diffstat (limited to 'rust/src/types.rs')
| -rw-r--r-- | rust/src/types.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/rust/src/types.rs b/rust/src/types.rs index 5a580a66..ef0c2c9c 100644 --- a/rust/src/types.rs +++ b/rust/src/types.rs @@ -1915,6 +1915,14 @@ impl NamedTypeReference { let named_ref: BNQualifiedName = unsafe { BNGetTypeReferenceName(self.handle) }; QualifiedName(named_ref) } + + pub fn id(&self) -> BnString { + unsafe { BnString::from_raw(BNGetTypeReferenceId(self.handle)) } + } + + pub fn class(&self) -> NamedTypeReferenceClass { + unsafe { BNGetTypeReferenceClass(self.handle) } + } } /////////////////// |
