Splits off all the bytes from this [`MemoryReservation`] into a new [`MemoryReservation`] with the same [`MemoryConsumer`]
(&mut self)
| 509 | /// Splits off all the bytes from this [`MemoryReservation`] into |
| 510 | /// a new [`MemoryReservation`] with the same [`MemoryConsumer`] |
| 511 | pub fn take(&mut self) -> MemoryReservation { |
| 512 | self.split(self.size.load(atomic::Ordering::Relaxed)) |
| 513 | } |
| 514 | } |
| 515 | |
| 516 | impl Drop for MemoryReservation { |