13 references to BOOL
System.IO.Compression.Brotli (13)
src\libraries\Common\src\Interop\Interop.Brotli.cs (6)
22
internal static unsafe partial
BOOL
BrotliDecoderDecompress(nuint availableInput, byte* inBytes, nuint* availableOutput, byte* outBytes);
28
internal static partial
BOOL
BrotliDecoderIsFinished(SafeBrotliDecoderHandle state);
34
internal static partial
BOOL
BrotliEncoderSetParameter(SafeBrotliEncoderHandle state, BrotliEncoderParameter parameter, uint value);
37
internal static unsafe partial
BOOL
BrotliEncoderCompressStream(
42
internal static partial
BOOL
BrotliEncoderHasMoreOutput(SafeBrotliEncoderHandle state);
51
internal static unsafe partial
BOOL
BrotliEncoderCompress(int quality, int window, int v, nuint availableInput, byte* inBytes, nuint* availableOutput, byte* outBytes);
System\IO\Compression\dec\BrotliDecoder.cs (2)
62
if (Interop.Brotli.BrotliDecoderIsFinished(_state) != Interop.
BOOL
.FALSE)
120
bool success = Interop.Brotli.BrotliDecoderDecompress((nuint)source.Length, inBytes, &availableOutput, outBytes) != Interop.
BOOL
.FALSE;
System\IO\Compression\enc\BrotliEncoder.cs (5)
81
if (Interop.Brotli.BrotliEncoderSetParameter(_state, BrotliEncoderParameter.Quality, (uint)quality) == Interop.
BOOL
.FALSE)
99
if (Interop.Brotli.BrotliEncoderSetParameter(_state, BrotliEncoderParameter.LGWin, (uint)window) == Interop.
BOOL
.FALSE)
161
if (Interop.Brotli.BrotliEncoderCompressStream(_state, operation, ref availableInput, &inBytes, ref availableOutput, &outBytes, out _) == Interop.
BOOL
.FALSE)
173
if ((int)availableOutput == destination.Length && Interop.Brotli.BrotliEncoderHasMoreOutput(_state) == Interop.
BOOL
.FALSE && availableInput == 0)
218
bool success = Interop.Brotli.BrotliEncoderCompress(quality, window, /*BrotliEncoderMode*/ 0, (nuint)source.Length, inBytes, &availableOutput, outBytes) != Interop.
BOOL
.FALSE;