| 63 | } |
| 64 | |
| 65 | void LinearAllocator::resize(const int cap) |
| 66 | { |
| 67 | if (buffer) |
| 68 | dtFree(buffer); |
| 69 | buffer = (unsigned char*)dtAlloc(cap, DT_ALLOC_PERM); |
| 70 | capacity = cap; |
| 71 | } |
| 72 | |
| 73 | int FastLZCompressor::maxCompressedSize(const int bufferSize) |
| 74 | { |
no test coverage detected