StephanvanSchaik / mmap-rs

A cross-platform and safe Rust API to create and manage memory mappings in the virtual address space of the calling process.
Apache License 2.0
61 stars 17 forks source link

Return the allocation base for memory areas #33

Closed StephanvanSchaik closed 1 year ago

StephanvanSchaik commented 1 year ago

This PR extends the query API to also return the allocation base of memory areas. On Microsoft Windows, the allocation base is equal to the base address of the memory area that was originally reserved due to how memory allocation works on Microsoft Windows (see PR #26). On Unix, the allocation base is the same as the actual base address of the memory area.