Skip to content

miniproto_native::tl::tl_decode_long_vector

  • Crate: miniproto_native
  • Rust visibility: restricted
  • Source: rust/miniproto/src/tl.rs
  • Python exposure: miniproto._native.tl_decode_long_vector (confirmed from adjacent PyO3 attributes)
fn tl_decode_long_vector(py: _, data: _, offset: i128) -> _
  • py: The acquired GIL token used to detach large vector decoding.
  • data: TL bytes containing a generic long vector.
  • offset: Python-facing signed byte offset that must convert to usize.
fn tl_decode_long_vector(py: Python<'_>, data: Vec<u8>, offset: i128) -> PyResult<(Vec<i64>, usize)>

Defined in rust/miniproto/src/tl.rs:749-757

Decodes Python tl_decode_long_vector(data, offset) into values and a next offset.

The signed Python offset must fit usize; large decoding releases the GIL and malformed input returns a Python exception.

  • py: The acquired GIL token used to detach large vector decoding.
  • data: TL bytes containing a generic long vector.
  • offset: Python-facing signed byte offset that must convert to usize.