Skip to content

miniproto_native::tl::tl_encode_int128

  • Crate: miniproto_native
  • Rust visibility: restricted
  • Source: rust/miniproto/src/tl.rs
  • Python exposure: miniproto._native.tl_encode_int128 (confirmed from adjacent PyO3 attributes)
fn tl_encode_int128(value: &_) -> _
  • value: Python integer to convert to exactly 16 little-endian bytes.
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.

  • value: Python integer to convert to exactly 16 little-endian bytes.