| 35 | { |
| 36 | public: |
| 37 | virtual Buffer *allocate(size_t size) |
| 38 | { |
| 39 | Buffer *b = new Buffer; |
| 40 | b->data = new unsigned char[size]; |
| 41 | b->length = 0; |
| 42 | b->capacity = size; |
| 43 | b->allocator = this; |
| 44 | return b; |
| 45 | } |
| 46 | |
| 47 | virtual void free(Buffer *b) |
| 48 | { |
nothing calls this directly
no outgoing calls
no test coverage detected