Returns the allocated size of the buffer at 'ptr' if known, otherwise returns RequestedSize(ptr). AllocatedSize(ptr) is guaranteed to be >= RequestedSize(ptr). REQUIRES: TracksAllocationSizes() is true. REQUIRES: 'ptr!=nullptr' and points to a buffer previously allocated by this allocator.
| 187 | // REQUIRES: 'ptr!=nullptr' and points to a buffer previously |
| 188 | // allocated by this allocator. |
| 189 | virtual size_t AllocatedSize(const void* ptr) const { |
| 190 | return RequestedSize(ptr); |
| 191 | } |
| 192 | |
| 193 | // Returns either 0 or an identifier assigned to the buffer at 'ptr' |
| 194 | // when the buffer was returned by AllocateRaw. If non-zero, the |
no outgoing calls