Format: application/octet-stream
1 from typing import Any, AnyStr, Tuple
2
3 class error(Exception): ...
4
5 class Struct(object):
6 size: int
7 format: str
8 def __init__(self, fmt: str) -> None: ...
9 def pack_into(self, buffer: bytearray, offset: int, obj: Any) -> None: ...
10 def pack(self, *args) -> str: ...
11 def unpack(self, s: str) -> Tuple[Any, ...]: ...
12 def unpack_from(self, buffer: bytearray, offset: int = ...) -> Tuple[Any, ...]: ...
13
14 def _clearcache() -> None: ...
15 def calcsize(fmt: str) -> int: ...
16 def pack(fmt: AnyStr, obj: Any) -> str: ...
17 def pack_into(fmt: AnyStr, buffer: bytearray, offset: int, obj: Any) -> None: ...
18 def unpack(fmt: AnyStr, data: str) -> Tuple[Any, ...]: ...
19 def unpack_from(fmt: AnyStr, buffer: bytearray, offset: int = ...) -> Tuple[Any, ...]: ...
20