Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
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()

virtual void flutter::ByteStreamWriter::WriteByte ( uint8_t  byte)
pure virtual

◆ 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.

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

◆ WriteInt32()

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

Definition at line 68 of file byte_streams.h.

68 {
69 WriteBytes(reinterpret_cast<const uint8_t*>(&value), 4);
70 }

◆ WriteInt64()

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

Definition at line 73 of file byte_streams.h.

73 {
74 WriteBytes(reinterpret_cast<const uint8_t*>(&value), 8);
75 }

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