Lines Matching refs:ok
93 BROTLI_BOOL ok = BROTLI_TRUE;
101 while (ok) {
102 ok = BrotliEncoderCompressStream(enc, op,
105 if (!ok)
122 return ok;
176 int ok;
180 ok = PyArg_ParseTupleAndKeywords(args, keywds, "|O&O&O&O&:Compressor",
186 if (!ok)
227 BROTLI_BOOL ok = BROTLI_TRUE;
230 ok = (BROTLI_BOOL)PyArg_ParseTuple(args, "y*:process", &input);
232 ok = (BROTLI_BOOL)PyArg_ParseTuple(args, "s*:process", &input);
235 if (!ok)
239 ok = BROTLI_FALSE;
243 ok = compress_stream(self->enc, BROTLI_OPERATION_PROCESS,
248 if (ok) {
274 BROTLI_BOOL ok = BROTLI_TRUE;
277 ok = BROTLI_FALSE;
281 ok = compress_stream(self->enc, BROTLI_OPERATION_FLUSH,
285 if (ok) {
314 BROTLI_BOOL ok = BROTLI_TRUE;
317 ok = BROTLI_FALSE;
321 ok = compress_stream(self->enc, BROTLI_OPERATION_FINISH,
324 if (ok) {
325 ok = BrotliEncoderIsFinished(self->enc);
329 if (ok) {
398 BROTLI_BOOL ok = BROTLI_TRUE;
417 ok = result != BROTLI_DECODER_RESULT_ERROR && !available_in;
420 return ok;
458 int ok;
462 ok = PyArg_ParseTupleAndKeywords(args, keywds, "|:Decompressor",
464 if (!ok)
496 BROTLI_BOOL ok = BROTLI_TRUE;
499 ok = (BROTLI_BOOL)PyArg_ParseTuple(args, "y*:process", &input);
501 ok = (BROTLI_BOOL)PyArg_ParseTuple(args, "s*:process", &input);
504 if (!ok)
508 ok = BROTLI_FALSE;
512 ok = decompress_stream(self->dec, &output, static_cast<uint8_t*>(input.buf), input.len);
516 if (ok) {
542 BROTLI_BOOL ok = BROTLI_TRUE;
545 ok = BROTLI_FALSE;
557 if (ok) {
642 int ok;
647 ok = PyArg_ParseTupleAndKeywords(args, keywds, "y*|:decompress",
650 ok = PyArg_ParseTupleAndKeywords(args, keywds, "s*|:decompress",
654 if (!ok)
675 ok = result == BROTLI_DECODER_RESULT_SUCCESS && !available_in;
682 if (ok) {