Channel

A Room.channel(id) view's frames — RoomChannel. 0x63, ASCII 'c'.

classifies is narrower than matches: a channel frame carries a 3-byte header, so a 1- or 2-byte payload leading with 0x63 claims the byte but is not a channel frame.

Properties

Link copied to clipboard
val byte: Byte

the first byte of every frame in this family.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard
open fun classifies(bytes: ByteArray): Boolean

Whether bytes is a frame of this family, by the family's own real classifier.

Link copied to clipboard

Whether bytes claims this family's prefix byte — a single-byte test. Empty is never.