#include <test_codec_extensions.h>
Definition at line 48 of file test_codec_extensions.h.
◆ PointExtensionSerializer()
flutter::PointExtensionSerializer::PointExtensionSerializer |
( |
| ) |
|
|
default |
◆ ~PointExtensionSerializer()
flutter::PointExtensionSerializer::~PointExtensionSerializer |
( |
| ) |
|
|
virtualdefault |
◆ GetInstance()
◆ ReadValueOfType()
◆ WriteValue()
Reimplemented from flutter::StandardCodecSerializer.
Definition at line 29 of file test_codec_extensions.cc.
30 {
31 auto custom_value = std::get_if<CustomEncodableValue>(&
value);
32 if (!custom_value) {
34 return;
35 }
36 stream->WriteByte(kPointType);
37 const Point& point = std::any_cast<Point>(*custom_value);
38 stream->WriteInt32(point.x());
39 stream->WriteInt32(point.y());
40}
virtual void WriteValue(const EncodableValue &value, ByteStreamWriter *stream) const
The documentation for this class was generated from the following files: