| 243 | } |
| 244 | |
| 245 | void* Allocate() { |
| 246 | if (current_ + slot_size_ <= end_) { |
| 247 | auto ret = current_; |
| 248 | current_ += slot_size_; |
| 249 | return ret; |
| 250 | } |
| 251 | return nullptr; |
| 252 | } |
| 253 | |
| 254 | size_t BatchAllocate(size_t num, void** ret) { |
| 255 | for (int i = 0; i < num; ++i) { |
no outgoing calls
no test coverage detected