miniproto_native::tl::tl_encode_int128
Provenance
Section titled “Provenance”- Crate:
miniproto_native - Rust visibility:
restricted - Source:
rust/miniproto/src/tl.rs - Python exposure:
miniproto._native.tl_encode_int128(confirmed from adjacent PyO3 attributes)
Signature
Section titled “Signature”fn tl_encode_int128(value: &_) -> _Arguments
Section titled “Arguments”value: Python integer to convert to exactly 16 little-endian bytes.
cargo-docs-md rendering
Section titled “cargo-docs-md rendering”tl_encode_int128
Section titled “tl_encode_int128”fn tl_encode_int128(value: &Bound<'_, PyAny>) -> PyResult<Vec<u8>>Defined in rust/miniproto/src/tl.rs:572-574
Encodes Python tl_encode_int128(value) to 16 little-endian bytes via int.to_bytes.
Python raises if value cannot fit the requested unsigned representation.
Arguments
Section titled “Arguments”value: Python integer to convert to exactly 16 little-endian bytes.