Skip to content

miniproto.connection.framing.NativeFrameCodec.feed_data

miniproto.connection.framing.NativeFrameCodec.feed_data

Section titled “miniproto.connection.framing.NativeFrameCodec.feed_data”
feed_data(data: bytes | bytearray | memoryview) -> tuple[FrameEvent, ...]

Decode native frame-pump events into the portable event types.

Parameters:

Raises:

  • TransportError – If the backend rejects invalid framing under the same rules as the Python codec.
  • RuntimeError – If the backend emits an unknown event kind.