1 use super::*;
2 use bindings::Windows::Win32::System::Memory::*;
3 
heap_alloc(bytes: usize) -> RawPtr4 pub fn heap_alloc(bytes: usize) -> RawPtr {
5     unsafe { HeapAlloc(GetProcessHeap(), HEAP_NONE, bytes) }
6 }
7 
8 /// # Safety
heap_free(ptr: RawPtr)9 pub unsafe fn heap_free(ptr: RawPtr) {
10     HeapFree(GetProcessHeap(), HEAP_NONE, ptr);
11 }
12