Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
flutter::MessageCodec< T > Class Template Referenceabstract

#include <message_codec.h>

Public Member Functions

 MessageCodec ()=default
 
virtual ~MessageCodec ()=default
 
 MessageCodec (MessageCodec< T > const &)=delete
 
MessageCodecoperator= (MessageCodec< T > const &)=delete
 
std::unique_ptr< TDecodeMessage (const uint8_t *binary_message, const size_t message_size) const
 
std::unique_ptr< TDecodeMessage (const std::vector< uint8_t > &binary_message) const
 
std::unique_ptr< std::vector< uint8_t > > EncodeMessage (const T &message) const
 

Protected Member Functions

virtual std::unique_ptr< TDecodeMessageInternal (const uint8_t *binary_message, const size_t message_size) const =0
 
virtual std::unique_ptr< std::vector< uint8_t > > EncodeMessageInternal (const T &message) const =0
 

Detailed Description

template<typename T>
class flutter::MessageCodec< T >

Definition at line 17 of file message_codec.h.

Constructor & Destructor Documentation

◆ MessageCodec() [1/2]

template<typename T >
flutter::MessageCodec< T >::MessageCodec ( )
default

◆ ~MessageCodec()

template<typename T >
virtual flutter::MessageCodec< T >::~MessageCodec ( )
virtualdefault

◆ MessageCodec() [2/2]

template<typename T >
flutter::MessageCodec< T >::MessageCodec ( MessageCodec< T > const &  )
delete

Member Function Documentation

◆ DecodeMessage() [1/2]

template<typename T >
std::unique_ptr< T > flutter::MessageCodec< T >::DecodeMessage ( const std::vector< uint8_t > &  binary_message) const
inline

Definition at line 36 of file message_codec.h.

37 {
38 size_t size = binary_message.size();
39 const uint8_t* data = size > 0 ? &binary_message[0] : nullptr;
40 return std::move(DecodeMessageInternal(data, size));
41 }
virtual std::unique_ptr< T > DecodeMessageInternal(const uint8_t *binary_message, const size_t message_size) const =0
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot data
Definition switches.h:41
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

◆ DecodeMessage() [2/2]

template<typename T >
std::unique_ptr< T > flutter::MessageCodec< T >::DecodeMessage ( const uint8_t *  binary_message,
const size_t  message_size 
) const
inline

Definition at line 29 of file message_codec.h.

30 {
31 return std::move(DecodeMessageInternal(binary_message, message_size));
32 }

◆ DecodeMessageInternal()

template<typename T >
virtual std::unique_ptr< T > flutter::MessageCodec< T >::DecodeMessageInternal ( const uint8_t *  binary_message,
const size_t  message_size 
) const
protectedpure virtual

◆ EncodeMessage()

template<typename T >
std::unique_ptr< std::vector< uint8_t > > flutter::MessageCodec< T >::EncodeMessage ( const T message) const
inline

Definition at line 45 of file message_codec.h.

45 {
46 return std::move(EncodeMessageInternal(message));
47 }
virtual std::unique_ptr< std::vector< uint8_t > > EncodeMessageInternal(const T &message) const =0
Win32Message message

◆ EncodeMessageInternal()

template<typename T >
virtual std::unique_ptr< std::vector< uint8_t > > flutter::MessageCodec< T >::EncodeMessageInternal ( const T message) const
protectedpure virtual

◆ operator=()

template<typename T >
MessageCodec & flutter::MessageCodec< T >::operator= ( MessageCodec< T > const &  )
delete

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