miniproto.connection.framing.PythonFrameCodec.feed_data
miniproto.connection.framing.PythonFrameCodec.feed_data
Section titled “miniproto.connection.framing.PythonFrameCodec.feed_data”feed_data(data: bytes | bytearray | memoryview) -> tuple[FrameEvent, ...]Consume an arbitrary transport fragment and drain complete events.
Incomplete trailing bytes remain buffered for the next call, so callers may pass ordinary socket-read fragments without preserving boundaries.
Parameters:
- data (
bytes | bytearray | memoryview) – Newly received wire bytes.
Returns:
FrameEvent– Every complete payload, quick-ACK, or transport-error event decoded…– from the accumulated input, in wire order.
Raises:
TransportError– If a complete header or frame is malformed or exceeds the configured size bound.