Skip to content

miniproto_native::tl::tl_decode_int256

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

Defined in rust/miniproto/src/tl.rs:613-616

Decodes Python tl_decode_int256(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 32-byte integer field.
  • offset: Byte offset at which the fixed-width field starts.