miniproto_native::tl::tl_decode_bytes
Provenance
Section titled “Provenance”- Rust visibility:
restricted - Source:
rust/miniproto/src/tl.rs - Python exposure:
miniproto._native.tl_decode_bytes(confirmed from adjacent PyO3 attributes)
Signature
Section titled “Signature”fn tl_decode_bytes(data: &[u8], offset: i128) -> _Arguments
Section titled “Arguments”data: TL bytes containing one length-prefixed byte field.offset: Byte offset at which the field starts.
tl_decode_bytes
Section titled “tl_decode_bytes”fn tl_decode_bytes(data: &[u8], offset: i128) -> PyResult<(Vec<u8>, usize)>Defined in rust/miniproto/src/tl.rs:686-689
Decodes Python tl_decode_bytes(data, offset) and returns bytes plus the next aligned offset.
Returns ValueError for malformed or truncated TL data.
Arguments
Section titled “Arguments”data: TL bytes containing one length-prefixed byte field.offset: Byte offset at which the field starts.