Return offset to unoccupied space in current chunk.
| 280 | |
| 281 | /// Return offset to unoccupied space in current chunk. |
| 282 | int64_t GetFreeOffset() const { |
| 283 | if (current_chunk_idx_ == -1) return 0; |
| 284 | return chunks_[current_chunk_idx_].allocated_bytes; |
| 285 | } |
| 286 | |
| 287 | template <bool CHECK_LIMIT_FIRST> |
| 288 | uint8_t* ALWAYS_INLINE Allocate(int64_t size, int alignment) noexcept { |