| 76 | } |
| 77 | |
| 78 | dtStatus ax::FastLZCompressor::decompress(const unsigned char* compressed, |
| 79 | const int compressedSize, |
| 80 | unsigned char* buffer, |
| 81 | const int maxBufferSize, |
| 82 | int* bufferSize) |
| 83 | { |
| 84 | *bufferSize = fastlz_decompress(compressed, compressedSize, buffer, maxBufferSize); |
| 85 | return *bufferSize < 0 ? DT_FAILURE : DT_SUCCESS; |
| 86 | } |
| 87 | |
| 88 | dtStatus ax::FastLZCompressor::compress(const unsigned char* buffer, |
| 89 | const int bufferSize, |
no test coverage detected