MessageCodec<String>
A
MessageCodec
using UTF-8 encoded String messages.
This codec is guaranteed to be compatible with the corresponding StringCodec on the Dart side. These parts of the Flutter SDK are evolved synchronously.
Fields
Decodes the specified message from binary.
Encodes the specified message into binary.
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Encodes the specified message into binary.
encodeMessage
in interface MessageCodec<String>
message
- the T message, possibly null.
Warning: The ByteBuffer is "direct" and it won't be valid beyond this call. Storing the ByteBuffer and using it later and will lead to a java.nio.BufferUnderflowException
. If you want to retain the data you'll need to copy it.
decodeMessage
in interface MessageCodec<String>
message
- the ByteBuffer
message, possibly null.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4