miniproto.tl.fast.decode_fast
miniproto.tl.fast.decode_fast
Section titled “miniproto.tl.fast.decode_fast”decode_fast(constructor_id: int, data: bytes | memoryview, offset: int = 0, *, boxed: bool = True) -> tuple[tuple[object, ...], int] | NoneAttempt native deserialization for a generated TL constructor.
Parameters:
- constructor_id (
int) – Unsigned 32-bit TL constructor identifier. - data (
bytes | memoryview) – Wire bytes; memoryviews deliberately use the Python path. - offset (
int) – Initial byte offset, defaulting to0. - boxed (
bool) – Whether the input includes a constructor identifier.
Returns: