Flutter Engine
flutter::ByteStreamWriter Class Referenceabstract

#include <byte_streams.h>

Inheritance diagram for flutter::ByteStreamWriter:
flutter::ByteBufferStreamWriter

Public Member Functions

 ByteStreamWriter ()=default
 
virtual ~ByteStreamWriter ()=default
 
virtual void WriteByte (uint8_t byte)=0
 
virtual void WriteBytes (const uint8_t *bytes, size_t length)=0
 
virtual void WriteAlignment (uint8_t alignment)=0
 
void WriteInt32 (int32_t value)
 
void WriteInt64 (int64_t value)
 
void WriteDouble (double value)
 

Detailed Description

Definition at line 52 of file byte_streams.h.

Constructor & Destructor Documentation

◆ ByteStreamWriter()

flutter::ByteStreamWriter::ByteStreamWriter ( )
explicitdefault

◆ ~ByteStreamWriter()

virtual flutter::ByteStreamWriter::~ByteStreamWriter ( )
virtualdefault

Member Function Documentation

◆ WriteAlignment()

virtual void flutter::ByteStreamWriter::WriteAlignment ( uint8_t  alignment)
pure virtual

◆ WriteByte()

◆ WriteBytes()

virtual void flutter::ByteStreamWriter::WriteBytes ( const uint8_t *  bytes,
size_t  length 
)
pure virtual

◆ WriteDouble()

void flutter::ByteStreamWriter::WriteDouble ( double  value)
inline

Definition at line 78 of file byte_streams.h.

Referenced by flutter::StandardCodecSerializer::WriteValue().

78  {
79  WriteBytes(reinterpret_cast<const uint8_t*>(&value), 8);
80  }
uint8_t value
virtual void WriteBytes(const uint8_t *bytes, size_t length)=0

◆ WriteInt32()

void flutter::ByteStreamWriter::WriteInt32 ( int32_t  value)
inline

Definition at line 68 of file byte_streams.h.

Referenced by flutter::StandardCodecSerializer::WriteValue(), and flutter::PointExtensionSerializer::WriteValue().

68  {
69  WriteBytes(reinterpret_cast<const uint8_t*>(&value), 4);
70  }
uint8_t value
virtual void WriteBytes(const uint8_t *bytes, size_t length)=0

◆ WriteInt64()

void flutter::ByteStreamWriter::WriteInt64 ( int64_t  value)
inline

Definition at line 73 of file byte_streams.h.

Referenced by flutter::StandardCodecSerializer::WriteValue().

73  {
74  WriteBytes(reinterpret_cast<const uint8_t*>(&value), 8);
75  }
uint8_t value
virtual void WriteBytes(const uint8_t *bytes, size_t length)=0

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