Returns a pointer to the top of the stack (the highest address). Note that the returned pointer has provenance for the entire stack allocation, however, not just the top.
(&mut self)
| 788 | /// Note that the returned pointer has provenance for the entire stack |
| 789 | /// allocation, however, not just the top. |
| 790 | fn top(&mut self) -> *mut u8 { |
| 791 | let len = self.len(); |
| 792 | unsafe { self.base().add(len) } |
| 793 | } |
| 794 | |
| 795 | /// Returns a pointer to the base of the stack (the lowest address). |
| 796 | /// |
no test coverage detected