Skip to content

miniproto_native::tl::tl_encode_long_vector

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

Defined in rust/miniproto/src/tl.rs:733-736

Encodes Python tl_encode_long_vector(values) as a generic TL vector of 64-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 64-bit values to serialize.