Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
dart::bin::Filter Class Referenceabstract

#include <filter.h>

Inheritance diagram for dart::bin::Filter:
dart::bin::ZLibDeflateFilter dart::bin::ZLibInflateFilter

Public Member Functions

virtual ~Filter ()
 
virtual bool Init ()=0
 
virtual bool Process (uint8_t *data, intptr_t length)=0
 
virtual intptr_t Processed (uint8_t *buffer, intptr_t length, bool finish, bool end)=0
 
bool initialized () const
 
void set_initialized (bool value)
 
uint8_t * processed_buffer ()
 
intptr_t processed_buffer_size () const
 

Static Public Member Functions

static Dart_Handle SetFilterAndCreateFinalizer (Dart_Handle filter, Filter *filter_pointer, intptr_t filter_size)
 
static Dart_Handle GetFilterNativeField (Dart_Handle filter, Filter **filter_pointer)
 

Protected Member Functions

 Filter ()
 

Detailed Description

Definition at line 16 of file filter.h.

Constructor & Destructor Documentation

◆ ~Filter()

virtual dart::bin::Filter::~Filter ( )
inlinevirtual

Definition at line 18 of file filter.h.

18{}

◆ Filter()

dart::bin::Filter::Filter ( )
inlineprotected

Definition at line 45 of file filter.h.

45: initialized_(false) {}

Member Function Documentation

◆ GetFilterNativeField()

Dart_Handle dart::bin::Filter::GetFilterNativeField ( Dart_Handle  filter,
Filter **  filter_pointer 
)
static

Definition at line 278 of file filter.cc.

279 {
282 reinterpret_cast<intptr_t*>(filter_pointer));
283}
static constexpr int kFilterPointerNativeField
Definition: filter.cc:18
DART_EXPORT Dart_Handle Dart_GetNativeInstanceField(Dart_Handle obj, int index, intptr_t *value)

◆ Init()

virtual bool dart::bin::Filter::Init ( )
pure virtual

◆ initialized()

bool dart::bin::Filter::initialized ( ) const
inline

Definition at line 39 of file filter.h.

39{ return initialized_; }

◆ Process()

virtual bool dart::bin::Filter::Process ( uint8_t *  data,
intptr_t  length 
)
pure virtual

On a successful call to Process, Process will take ownership of data. On successive calls to either Processed or ~Filter, data will be freed with a delete[] call.

Implemented in dart::bin::ZLibDeflateFilter, and dart::bin::ZLibInflateFilter.

◆ Processed()

virtual intptr_t dart::bin::Filter::Processed ( uint8_t *  buffer,
intptr_t  length,
bool  finish,
bool  end 
)
pure virtual

◆ processed_buffer()

uint8_t * dart::bin::Filter::processed_buffer ( )
inline

Definition at line 41 of file filter.h.

41{ return processed_buffer_; }

◆ processed_buffer_size()

intptr_t dart::bin::Filter::processed_buffer_size ( ) const
inline

Definition at line 42 of file filter.h.

42{ return kFilterBufferSize; }

◆ set_initialized()

void dart::bin::Filter::set_initialized ( bool  value)
inline

Definition at line 40 of file filter.h.

40{ initialized_ = value; }
uint8_t value

◆ SetFilterAndCreateFinalizer()

Dart_Handle dart::bin::Filter::SetFilterAndCreateFinalizer ( Dart_Handle  filter,
Filter filter_pointer,
intptr_t  filter_size 
)
static

Definition at line 264 of file filter.cc.

266 {
267 Dart_Handle err =
269 reinterpret_cast<intptr_t>(filter_pointer));
270 if (Dart_IsError(err)) {
271 return err;
272 }
273 Dart_NewFinalizableHandle(filter, reinterpret_cast<void*>(filter_pointer),
275 return err;
276}
struct _Dart_Handle * Dart_Handle
Definition: dart_api.h:258
static void DeleteFilter(void *isolate_data, void *filter_pointer)
Definition: filter.cc:259
DART_EXPORT Dart_FinalizableHandle Dart_NewFinalizableHandle(Dart_Handle object, void *peer, intptr_t external_allocation_size, Dart_HandleFinalizer callback)
DART_EXPORT bool Dart_IsError(Dart_Handle handle)
DART_EXPORT Dart_Handle Dart_SetNativeInstanceField(Dart_Handle obj, int index, intptr_t value)
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
Definition: switches.h:259

The documentation for this class was generated from the following files: