| 444 | } |
| 445 | |
| 446 | static void |
| 447 | brotli_transform_one(Data *data, const char *upstream_buffer, int64_t upstream_length) |
| 448 | { |
| 449 | bool ok = brotli_compress_operation(data, upstream_buffer, upstream_length, BROTLI_OPERATION_PROCESS); |
| 450 | if (!ok) { |
| 451 | error("BrotliEncoderCompressStream(PROCESS) call failed"); |
| 452 | return; |
| 453 | } |
| 454 | |
| 455 | data->bstrm.total_in += upstream_length; |
| 456 | |
| 457 | if (!data->hc->flush()) { |
| 458 | return; |
| 459 | } |
| 460 | |
| 461 | ok = brotli_compress_operation(data, nullptr, 0, BROTLI_OPERATION_FLUSH); |
| 462 | if (!ok) { |
| 463 | error("BrotliEncoderCompressStream(FLUSH) call failed"); |
| 464 | return; |
| 465 | } |
| 466 | } |
| 467 | #endif |
| 468 | |
| 469 | static void |
no test coverage detected