Skip to content

miniproto_native::tl::tl_decode_int128

  • Crate: miniproto_native
  • Rust visibility: restricted
  • Source: rust/miniproto/src/tl.rs
  • Python exposure: miniproto._native.tl_decode_int128 (confirmed from adjacent PyO3 attributes)
fn tl_decode_int128(py: _, data: &[u8], offset: usize) -> _
  • py: The acquired GIL token used to construct the Python integer.
  • data: TL bytes containing a 16-byte integer field.
  • offset: Byte offset at which the fixed-width field starts.
fn tl_decode_int128(py: Python<'_>, data: &[u8], offset: usize) -> PyResult<(Py<PyAny>, usize)>

Defined in rust/miniproto/src/tl.rs:586-589

Decodes Python tl_decode_int128(data, offset) to a Python integer and next offset.

Returns ValueError for truncated input and holds the GIL to construct the Python integer.

  • py: The acquired GIL token used to construct the Python integer.
  • data: TL bytes containing a 16-byte integer field.
  • offset: Byte offset at which the fixed-width field starts.