prime/src/Kyoto/Streams/CZipSupport.cpp
Phillip Stephens aab14dc7b0 Match and link most of Runtime
Former-commit-id: 8b0c414ae0bc27beaedcee98d0ab434b51d7fddd
2022-10-13 01:02:37 -07:00

19 lines
346 B
C++

#include "Kyoto/Streams/CZipSupport.hpp"
#include "Kyoto/Alloc/CMemory.hpp"
#include "zlib/zlib.h"
static char* hack() {
return ZLIB_VERSION;
}
void* CZipSupport::Alloc(void* ptr1, uint w1, uint w2) {
return new uchar[w1 * w2];
}
void CZipSupport::Free(void* ptr1, void* ptr2) {
if (ptr2 == nullptr) {
return;
}
delete[] ptr2;
}