zdoom-macos-deps/test/libbrotlienc.cpp

12 lines
326 B
C++
Raw Normal View History

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