#include <test_codec_extensions.h>
Definition at line 68 of file test_codec_extensions.h.
◆ SomeDataExtensionSerializer()
flutter::SomeDataExtensionSerializer::SomeDataExtensionSerializer |
( |
| ) |
|
|
default |
◆ ~SomeDataExtensionSerializer()
flutter::SomeDataExtensionSerializer::~SomeDataExtensionSerializer |
( |
| ) |
|
|
virtualdefault |
◆ GetInstance()
◆ ReadValueOfType()
Reimplemented from flutter::StandardCodecSerializer.
Definition at line 51 of file test_codec_extensions.cc.
53 {
54 if (
type == kSomeDataType) {
56 std::vector<uint8_t>
data;
60 return CustomEncodableValue(SomeData(std::get<std::string>(label),
data));
61 }
63}
EncodableValue ReadValue(ByteStreamReader *stream) const
virtual EncodableValue ReadValueOfType(uint8_t type, ByteStreamReader *stream) const
size_t ReadSize(ByteStreamReader *stream) const
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot data
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
◆ WriteValue()
Reimplemented from flutter::StandardCodecSerializer.
Definition at line 65 of file test_codec_extensions.cc.
66 {
67 auto custom_value = std::get_if<CustomEncodableValue>(&
value);
68 if (!custom_value) {
70 return;
71 }
72 stream->WriteByte(kSomeDataType);
73 const SomeData& some_data = std::any_cast<SomeData>(*custom_value);
74 size_t data_size = some_data.data().size();
76 stream->WriteBytes(some_data.data().data(), data_size);
78}
void WriteValue(const EncodableValue &value, ByteStreamWriter *stream) const override
virtual void WriteValue(const EncodableValue &value, ByteStreamWriter *stream) const
void WriteSize(size_t size, ByteStreamWriter *stream) const
The documentation for this class was generated from the following files: