rustwasm / wee_alloc

The Wasm-Enabled, Elfin Allocator
Mozilla Public License 2.0
666 stars 49 forks source link

Storage at arbitrary address #82

Closed athei closed 5 years ago

athei commented 5 years ago

Motivation

I want to place the memory pool at some arbitrary address because my embedded device happens to have some accessible memory there. The embedded static array is too inflexible for that.

Proposed Solution

Adding another constructor to the WeeAlloc struct where I can just pass in pointer + length or a slice and this memory is used no questions asked.

fitzgen commented 5 years ago

I believe that this is basically asking for the same feature as https://github.com/rustwasm/wee_alloc/issues/44 ?

athei commented 5 years ago

Yes I guess its a subset of #44.