class Message
(source)
Hobbits message.
Message(version: Int = 3, protocol: Protocol, headers: Bytes, body: Bytes)
Hobbits message. |
val body: Bytes |
|
val headers: Bytes |
|
val protocol: Protocol |
|
val version: Int |
fun size(): Int
Provides the size of the message |
|
fun toBytes(): Bytes
Writes a message into bytes. |
|
fun toString(): String |
fun readMessage(message: Bytes): Message?
Reads a message from a byte buffer. |