Companion

object Companion

Properties

Link copied to clipboard
const val PREFIX_BYTE: Byte = 116

First byte of every encoded admit frame. A replication frame must not begin with it, so the gate can distinguish protocol frames from application frames on the one shared incoming stream. Value 0x74 ('t' for tap-admit).

Functions

Link copied to clipboard

Decode bytes as a TapAdmitMessage, or null if they are not a prefixed admit frame (an application/replication frame) or fail to decode (malformed).

Link copied to clipboard

Encode a message to bytes with the PREFIX_BYTE framing prefix.

Link copied to clipboard

True if bytes looks like an admit frame (starts with PREFIX_BYTE).