MessageId

value class MessageId(val raw: Int)(source)

Type-safe wrapper for message/packet IDs (uint32).

The wire format is uint32; any bit pattern in the backing Int is valid (the SDK interprets the underlying value as unsigned). No range validation is performed.

Validation note: see NodeId — value-class init blocks would only run from Kotlin, but no validation is needed here since the full uint32 range is accepted.

Java interop: see NodeId — boxed accessors are exposed via -Xjvm-expose-boxed, so Java callers use e.g. handle.getId() rather than the mangled getId-eIGO-Ng().

Since

0.1.0

Constructors

Link copied to clipboard
constructor(raw: Int)

Properties

Link copied to clipboard
val raw: Int

Functions

Link copied to clipboard
open override fun toString(): String

Renders the underlying value as an unsigned decimal string for logs.