RNS::RawChannelReader(TPacket)
Provides an IO-like read interface over a Channel.
Listens for StreamDataMessage packets matching a given stream_id,
buffers incoming data, and exposes #read / #readinto for
consumption. Supports ready-callbacks so callers can be notified
when new data arrives. Generic over TPacket to match the
channel's packet type.
Constructors
Instance methods
Add a callback invoked when new data arrives. Signature: (ready_bytes : Int32) -> Nil
close
Sourceclosed?
SourceRead up to size bytes from the internal buffer.
Returns Bytes if data available (possibly empty at EOF), nil if no data and not EOF.
readable?
SourceRead into a provided buffer (matching Python readinto). Returns number of bytes read, or nil if no data available and not EOF.
seekable?
Sourcewritable?
Source