zdoom-macos-deps/test/libbrotlidec.cpp
2021-08-01 13:27:39 +03:00

11 lines
334 B
C++

#include <brotli/decode.h>
int main()
{
BrotliDecoderState* decoder = BrotliDecoderCreateInstance(nullptr, nullptr, nullptr);
AEDI_EXPECT(decoder != nullptr);
AEDI_EXPECT(BrotliDecoderSetParameter(decoder, BROTLI_DECODER_PARAM_LARGE_WINDOW, 1) == BROTLI_TRUE);
BrotliDecoderDestroyInstance(decoder);
return 0;
}