| 1 |
from mypy_extensions import u8 |
| 2 |
|
| 3 |
class Buffer: |
| 4 |
def __init__(self, source: bytes = ...) -> None: ... |
| 5 |
def getvalue(self) -> bytes: ... |
| 6 |
|
| 7 |
def write_bool(data: Buffer, value: bool) -> None: ... |
| 8 |
def read_bool(data: Buffer) -> bool: ... |
| 9 |
def write_str(data: Buffer, value: str) -> None: ... |
| 10 |
def read_str(data: Buffer) -> str: ... |
| 11 |
def write_float(data: Buffer, value: float) -> None: ... |
| 12 |
def read_float(data: Buffer) -> float: ... |
| 13 |
def write_int(data: Buffer, value: int) -> None: ... |
| 14 |
def read_int(data: Buffer) -> int: ... |
| 15 |
def write_tag(data: Buffer, value: u8) -> None: ... |
| 16 |
def read_tag(data: Buffer) -> u8: ... |