408 {
409 stream_.avail_out =
length;
410 stream_.next_out =
buffer;
412 int v;
413 switch (v = inflate(&stream_, end ? Z_FINISH
414 : flush ? Z_SYNC_FLUSH
415 : Z_NO_FLUSH)) {
416 case Z_OK:
417 case Z_STREAM_END:
418 case Z_BUF_ERROR: {
419 intptr_t processed =
length - stream_.avail_out;
420
421 if (v == Z_STREAM_END) {
422
423
424
425
426
427
428
429
430
431
432 inflateReset(&stream_);
433 }
434 if (processed == 0) {
435 break;
436 }
437 return processed;
438 }
439
440 case Z_NEED_DICT:
441 if (dictionary_ == nullptr) {
443 } else {
445 inflateSetDictionary(&stream_, dictionary_, dictionary_length_);
446 delete[] dictionary_;
447 dictionary_ = nullptr;
449 }
451 break;
452 } else {
454 }
455
456 default:
457 case Z_MEM_ERROR:
458 case Z_DATA_ERROR:
459 case Z_STREAM_ERROR:
461 }
462
463 delete[] current_buffer_;
464 current_buffer_ = nullptr;
465
466 return error ? -1 : 0;
467}
virtual intptr_t Processed(uint8_t *buffer, intptr_t length, bool finish, bool end)
const uint8_t uint32_t uint32_t GError ** error
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace buffer