Return an uninitialized block of memory that is "num_bytes" bytes in size with specified allocation attributes. The returned pointer is guaranteed to be aligned to a multiple of "alignment" bytes. REQUIRES: "alignment" is a power of 2.
| 116 | // guaranteed to be aligned to a multiple of "alignment" bytes. |
| 117 | // REQUIRES: "alignment" is a power of 2. |
| 118 | virtual void* AllocateRaw(size_t alignment, size_t num_bytes, |
| 119 | const AllocationAttributes& allocation_attr) { |
| 120 | // The default behavior is to use the implementation without any allocation |
| 121 | // attributes. |
| 122 | return AllocateRaw(alignment, num_bytes); |
| 123 | } |
| 124 | |
| 125 | virtual size_t BatchAllocateRaw(size_t num, |
| 126 | size_t alignment, size_t num_bytes, void** ret) { |
no outgoing calls