BinaryCodec
, JSONMessageCodec
, StandardMessageCodec
, StringCodec
public interface MessageCodec<T>
Both operations throw IllegalArgumentException
, if conversion fails.
Decodes the specified message from binary.
Encodes the specified message into binary.
Encodes the specified message into binary.
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.
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