diff options
Diffstat (limited to 'rust/src')
| -rw-r--r-- | rust/src/type_container.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rust/src/type_container.rs b/rust/src/type_container.rs index d68fc9c0..e8c915df 100644 --- a/rust/src/type_container.rs +++ b/rust/src/type_container.rs @@ -42,6 +42,12 @@ impl TypeContainer { } } + /// Get an empty type container that contains no types (immutable) + pub fn empty() -> TypeContainer { + let result = unsafe { BNGetEmptyTypeContainer() }; + unsafe { Self::from_raw(NonNull::new(result).unwrap()) } + } + /// Get an id string for the Type Container. This will be unique within a given /// analysis session, but may not be globally unique. pub fn id(&self) -> String { |
