hobbits / org.apache.tuweni.hobbits / Message

Message

class Message (source)

Hobbits message.

Constructors

<init>

Message(version: Int = 3, protocol: Protocol, headers: Bytes, body: Bytes)

Hobbits message.

Properties

body

val body: Bytes

headers

val headers: Bytes

protocol

val protocol: Protocol

version

val version: Int

Functions

size

fun size(): Int

Provides the size of the message

toBytes

fun toBytes(): Bytes

Writes a message into bytes.

toString

fun toString(): String

Companion Object Functions

readMessage

fun readMessage(message: Bytes): Message?

Reads a message from a byte buffer.