zdoom-macos-deps/test/libbrotlienc.cpp
2021-08-01 13:27:39 +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;
}