gurry / efi

Ergonomic Rust framework for writing UEFI applications.
MIT License
59 stars 8 forks source link

Add EfiBox - RAII wrapper for heap ptrs #28

Open gurry opened 6 years ago

gurry commented 6 years ago

Currently we hold a lot of heap allocated pointers which we're just dropping on the floor when done with them. To fix that we should expose a type called EfiBox which is very similar to Box, but is guaranteed to go through our allocator or call UEFI's FreePool directly even. Will have to decide how much Boxs API surface we should copy.

gurry commented 6 years ago

Implemented

gurry commented 6 years ago

Implemented but not yet being used in places like DevicePath. Fix that as well.