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 {