Skip to content

miniproto_native::tl::tl_encode_int_vector

  • Crate: miniproto_native
  • Rust visibility: restricted
  • Source: rust/miniproto/src/tl.rs
  • Python exposure: miniproto._native.tl_encode_int_vector (confirmed from adjacent PyO3 attributes)
fn tl_encode_int_vector(py: _, values: _) -> _
  • py: The acquired GIL token used to detach large vector encoding.
  • values: Signed 32-bit values to serialize.
fn tl_encode_int_vector(py: Python<'_>, values: Vec<i32>) -> PyResult<Vec<u8>>

Defined in rust/miniproto/src/tl.rs:698-701

Encodes Python tl_encode_int_vector(values) as a generic TL vector of 32-bit integers.

Large vector encoding releases the GIL; invalid size or allocation raises a Python exception.

  • py: The acquired GIL token used to detach large vector encoding.
  • values: Signed 32-bit values to serialize.