We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 89cb8d5 + b8e5b48 commit 4f1f0dcCopy full SHA for 4f1f0dc
src/lib.rs
@@ -34,11 +34,12 @@ impl Heap {
34
///
35
/// Note that:
36
37
- /// - The heap grows "upwards", towards larger addresses. Thus `end_addr` must
38
- /// be larger than `start_addr`
+ /// - The heap grows "upwards", towards larger addresses. Thus `start_addr` will
+ /// be the smallest address used.
39
40
- /// - The size of the heap is `(end_addr as usize) - (start_addr as usize)`. The
41
- /// allocator won't use the byte at `end_addr`.
+ /// - The largest address used is `start_addr + size - 1`, so if `start_addr` is
+ /// `0x1000` and `size` is `0x30000` then the allocator won't use memory at
42
+ /// addresses `0x31000` and larger.
43
44
/// # Safety
45
0 commit comments