Skip to content

miniproto_native::tl::tl_decode_uint

  • Crate: miniproto_native
  • Rust visibility: restricted
  • Source: rust/miniproto/src/tl.rs
  • Python exposure: miniproto._native.tl_decode_uint (confirmed from adjacent PyO3 attributes)
fn tl_decode_uint(data: &[u8], offset: usize) -> _
  • data: TL bytes containing a four-byte unsigned integer.
  • offset: Byte offset at which the integer starts.
fn tl_decode_uint(data: &[u8], offset: usize) -> PyResult<(u32, usize)>

Defined in rust/miniproto/src/tl.rs:537-540

Decodes Python tl_decode_uint(data, offset) and returns (value, next_offset) or ValueError.

  • data: TL bytes containing a four-byte unsigned integer.
  • offset: Byte offset at which the integer starts.