|
Flutter Windows Embedder
|
|
Go to the documentation of this file.
5 #ifndef FLUTTER_SHELL_PLATFORM_COMMON_CLIENT_WRAPPER_INCLUDE_FLUTTER_BYTE_STREAMS_H_
6 #define FLUTTER_SHELL_PLATFORM_COMMON_CLIENT_WRAPPER_INCLUDE_FLUTTER_BYTE_STREAMS_H_
23 virtual void ReadBytes(uint8_t* buffer,
size_t length) = 0;
32 ReadBytes(
reinterpret_cast<uint8_t*
>(&value), 4);
39 ReadBytes(
reinterpret_cast<uint8_t*
>(&value), 8);
46 ReadBytes(
reinterpret_cast<uint8_t*
>(&value), 8);
61 virtual void WriteBytes(
const uint8_t* bytes,
size_t length) = 0;
69 WriteBytes(
reinterpret_cast<const uint8_t*
>(&value), 4);
74 WriteBytes(
reinterpret_cast<const uint8_t*
>(&value), 8);
79 WriteBytes(
reinterpret_cast<const uint8_t*
>(&value), 8);
85 #endif // FLUTTER_SHELL_PLATFORM_COMMON_CLIENT_WRAPPER_INCLUDE_FLUTTER_BYTE_STREAMS_H_
virtual uint8_t ReadByte()=0
virtual void ReadBytes(uint8_t *buffer, size_t length)=0
virtual ~ByteStreamReader()=default
ByteStreamWriter()=default
void WriteInt32(int32_t value)
virtual ~ByteStreamWriter()=default
void WriteDouble(double value)
virtual void WriteBytes(const uint8_t *bytes, size_t length)=0
virtual void WriteAlignment(uint8_t alignment)=0
virtual void WriteByte(uint8_t byte)=0
ByteStreamReader()=default
virtual void ReadAlignment(uint8_t alignment)=0
void WriteInt64(int64_t value)