| 21 | namespace euler { |
| 22 | |
| 23 | Buffer::Buffer(Allocator* allocator, size_t size) |
| 24 | : allocator_(allocator), begin_(allocator->Allocate(size)), |
| 25 | size_(size), own_(true), parent_(nullptr) { |
| 26 | // memset(begin_, 0x00, size_); |
| 27 | } |
| 28 | |
| 29 | Buffer::Buffer(Allocator* allocator, void* begin, size_t size, bool own) |
| 30 | : allocator_(allocator), begin_(begin), |