Switching StringBuffer to use a raw pointer.

This commit is contained in:
Ben Vanik
2015-06-10 00:24:17 -07:00
parent 070d34cd02
commit 56a4620cdf
4 changed files with 31 additions and 24 deletions

View File

@@ -65,6 +65,10 @@ void* Arena::Alloc(size_t size) {
return p;
}
void Arena::Rewind(size_t size) {
active_chunk_->offset -= size;
}
void* Arena::CloneContents() {
size_t total_length = 0;
Chunk* chunk = head_chunk_;