Skip to content

miniproto_native::transport::TransportCodec::feed_data

  • Crate: miniproto_native
  • Rust visibility: restricted
  • Source: rust/miniproto/src/transport.rs
  • Python exposure: miniproto._native.TransportCodec.feed_data (confirmed from adjacent PyO3 attributes)
fn feed_data(self: &mut Self, data: &[u8]) -> _
  • data: Newly received TCP bytes to append to this codec’s buffered stream.
  • fn feed_data(&mut self, data: &[u8]) -> PyResult<Vec<(u8, Vec<u8>, i64, bool)>>

    Feeds Python feed_data(data) and returns tagged native event tuples.

    Tuple kinds are 0 payload, 1 quick ACK, and 2 negative transport error. It preserves

    incomplete trailing bytes for the next call and raises Python errors for invalid framing.

    • data: Newly received TCP bytes to append to this codec’s buffered stream.