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