From 1c8e4019f59435710cdc63bfa89bed2d17d825f1 Mon Sep 17 00:00:00 2001 From: cat_or_not <41955154+catornot@users.noreply.github.com> Date: Tue, 27 Aug 2024 21:01:08 -0400 Subject: [PATCH] expose source alloc fully --- src/mid/source_alloc.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/mid/source_alloc.rs b/src/mid/source_alloc.rs index 91f316d..f6fcf61 100644 --- a/src/mid/source_alloc.rs +++ b/src/mid/source_alloc.rs @@ -43,6 +43,13 @@ impl SourceAlloc { ) }) } + + /// returns the underlying source allocator + /// + /// the source allocator has more functions which may be useful + pub fn get_underlying_alloc(&self) -> &'static IMemAlloc { + self.0.wait().get() + } } unsafe impl GlobalAlloc for SourceAlloc {