Flutter Engine
The Flutter Engine
|
Public Member Functions | |
ByteBuffer | encodeMessage (@Nullable ByteBuffer message) |
ByteBuffer | decodeMessage (@Nullable ByteBuffer message) |
Public Member Functions inherited from io.flutter.plugin.common.MessageCodec< ByteBuffer > | |
ByteBuffer | encodeMessage ( @Nullable T message) |
T | decodeMessage ( @Nullable ByteBuffer message) |
Static Public Attributes | |
static final BinaryCodec | INSTANCE = new BinaryCodec() |
static final BinaryCodec | INSTANCE_DIRECT = new BinaryCodec(true) |
A MessageCodec
using unencoded binary messages, represented as ByteBuffer
s.
This codec is guaranteed to be compatible with the corresponding BinaryCodec on the Dart side. These parts of the Flutter SDK are evolved synchronously.
On the Dart side, messages are represented using ByteData
.
Definition at line 19 of file BinaryCodec.java.
|
inline |
Definition at line 54 of file BinaryCodec.java.
|
inline |
Definition at line 49 of file BinaryCodec.java.
|
static |
Definition at line 21 of file BinaryCodec.java.
|
static |
A BinaryCodec that returns direct ByteBuffers from decodeMessage
for better performance.
Definition at line 27 of file BinaryCodec.java.