Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
_buffer.pyi28 linesDownload Raw Back to aioquic
1from typing import Optional
2
3class BufferReadError(ValueError): ...
4class BufferWriteError(ValueError): ...
5
6class Buffer:
7    def __init__(self, capacity: Optional[int] = 0, data: Optional[bytes] = None): ...
8    @property
9    def capacity(self) -> int: ...
10    @property
11    def data(self) -> bytes: ...
12    def data_slice(self, start: int, end: int) -> bytes: ...
13    def eof(self) -> bool: ...
14    def seek(self, pos: int) -> None: ...
15    def tell(self) -> int: ...
16    def pull_bytes(self, length: int) -> bytes: ...
17    def pull_uint8(self) -> int: ...
18    def pull_uint16(self) -> int: ...
19    def pull_uint32(self) -> int: ...
20    def pull_uint64(self) -> int: ...
21    def pull_uint_var(self) -> int: ...
22    def push_bytes(self, value: bytes) -> None: ...
23    def push_uint8(self, value: int) -> None: ...
24    def push_uint16(self, value: int) -> None: ...
25    def push_uint32(self, v: int) -> None: ...
26    def push_uint64(self, v: int) -> None: ...
27    def push_uint_var(self, value: int) -> None: ...
28