The size of all slices in use. This is <= bytes_total()
(&self)
| 76 | |
| 77 | /// The size of all slices in use. This is <= bytes_total() |
| 78 | pub fn bytes_used(&self) -> usize { |
| 79 | unsafe { self.current.offset_from(self.bottom) as usize } |
| 80 | } |
| 81 | |
| 82 | /// The total size of this allocation, free and used. |
| 83 | pub fn bytes_total(&self) -> usize { |