miniproto_native::tl::tl_encode_long_vector
Provenance
Section titled “Provenance”- 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)
Signature
Section titled “Signature”fn tl_encode_long_vector(py: _, values: _) -> _Arguments
Section titled “Arguments”py: The acquired GIL token used to detach large vector encoding.values: Signed 64-bit values to serialize.
cargo-docs-md rendering
Section titled “cargo-docs-md rendering”tl_encode_long_vector
Section titled “tl_encode_long_vector”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.
Arguments
Section titled “Arguments”py: The acquired GIL token used to detach large vector encoding.values: Signed 64-bit values to serialize.