MeshCoreTCPMux::FrameCodec::Decoder
Inherits Reference < Object
Constructors
new(marker : UInt8, assembly_timeout : Time::Span = 5.seconds)
SourceInstance methods
assembly_timeout
Sourcecheck_deadline(now : Time::Span) : Nil
Sourcefeed(bytes : Bytes, now : Time::Span, & : Bytes -> ) : Nil
Sourcefinish
Sourcemarker
Incrementally removes the TCP envelope and returns owned payloads.
now must come from a monotonic clock. The decoder deliberately does not
read a clock itself, which keeps deadline handling deterministic and lets a
connection's timer fiber use check_deadline while no bytes arrive.
partial?
Source