5#ifndef RUNTIME_BIN_FILTER_H_
6#define RUNTIME_BIN_FILTER_H_
35 intptr_t filter_size);
48 static constexpr intptr_t kFilterBufferSize = 64 *
KB;
49 uint8_t processed_buffer_[kFilterBufferSize];
52 DISALLOW_COPY_AND_ASSIGN(
Filter);
63 intptr_t dictionary_length,
67 window_bits_(window_bits),
68 mem_level_(mem_level),
70 dictionary_(dictionary),
71 dictionary_length_(dictionary_length),
73 current_buffer_(nullptr) {}
86 const int32_t window_bits_;
87 const int32_t mem_level_;
88 const int32_t strategy_;
90 const intptr_t dictionary_length_;
92 uint8_t* current_buffer_;
102 intptr_t dictionary_length,
104 : window_bits_(window_bits),
105 dictionary_(dictionary),
106 dictionary_length_(dictionary_length),
108 current_buffer_(nullptr) {}
119 const int32_t window_bits_;
120 uint8_t* dictionary_;
121 const intptr_t dictionary_length_;
123 uint8_t* current_buffer_;
virtual intptr_t Processed(uint8_t *buffer, intptr_t length, bool finish, bool end)=0
static Dart_Handle SetFilterAndCreateFinalizer(Dart_Handle filter, Filter *filter_pointer, intptr_t filter_size)
virtual bool Process(uint8_t *data, intptr_t length)=0
intptr_t processed_buffer_size() const
uint8_t * processed_buffer()
static Dart_Handle GetFilterNativeField(Dart_Handle filter, Filter **filter_pointer)
void set_initialized(bool value)
virtual bool Process(uint8_t *data, intptr_t length)
virtual intptr_t Processed(uint8_t *buffer, intptr_t length, bool finish, bool end)
virtual ~ZLibDeflateFilter()
ZLibDeflateFilter(bool gzip, int32_t level, int32_t window_bits, int32_t mem_level, int32_t strategy, uint8_t *dictionary, intptr_t dictionary_length, bool raw)
virtual intptr_t Processed(uint8_t *buffer, intptr_t length, bool finish, bool end)
virtual ~ZLibInflateFilter()
virtual bool Process(uint8_t *data, intptr_t length)
ZLibInflateFilter(int32_t window_bits, uint8_t *dictionary, intptr_t dictionary_length, bool raw)
struct _Dart_Handle * Dart_Handle
static int8_t data[kExtLength]
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