zdoom-macos-deps/test/libbrotlienc.cpp
alexey.lysiuk 5853280727 restore brotli 1.0.9 files
revert commit 6e0fe92e94
2023-08-23 17:53:54 +03:00

11 lines
326 B
C++

#include <brotli/encode.h>
int main()
{
BrotliEncoderState* encoder = BrotliEncoderCreateInstance(nullptr, nullptr, nullptr);
AEDI_EXPECT(encoder != nullptr);
AEDI_EXPECT(BrotliEncoderSetParameter(encoder, BROTLI_PARAM_LARGE_WINDOW, 1) == BROTLI_TRUE);
BrotliEncoderDestroyInstance(encoder);
return 0;
}