tuweni / org.apache.tuweni.hobbits / Message / readMessage

readMessage

@JvmStatic fun readMessage(message: Bytes): Message? (source)

Reads a message from a byte buffer.

Parameters

message - the message bytes

Exceptions

IllegalArgumentException - if the message doesn't start with the correct preamble.

Return
the message interpreted by the codec, or null if the message is too short.