zdoom-macos-deps/test/libbrotlidec.cpp

12 lines
334 B
C++
Raw Normal View History

2021-08-01 10:27:39 +00:00
#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;
}