miniproto_native::tl::tl_decode_int256
Provenance
Section titled “Provenance”- Crate:
miniproto_native - Rust visibility:
restricted - Source:
rust/miniproto/src/tl.rs - Python exposure:
miniproto._native.tl_decode_int256(confirmed from adjacent PyO3 attributes)
Signature
Section titled “Signature”fn tl_decode_int256(py: _, data: &[u8], offset: usize) -> _Arguments
Section titled “Arguments”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.
cargo-docs-md rendering
Section titled “cargo-docs-md rendering”tl_decode_int256
Section titled “tl_decode_int256”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.
Arguments
Section titled “Arguments”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.