From 5094770405372098081110764843950364933904 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Tue, 20 May 2025 18:34:53 -0400 Subject: Add TypeContainer::GetEmptyTypeContainer --- rust/src/type_container.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'rust/src') 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 { -- cgit v1.3.1