| 1 | from typing import Any, Optional, Union |
| 2 | |
| 3 | def load_lib(name: str, cdecl: str) -> Any : ... |
| 4 | def c_ulong(x: int ) -> Any : ... |
| 5 | def c_ulonglong(x: int ) -> Any : ... |
| 6 | def c_size_t(x: int) -> Any : ... |
| 7 | def create_string_buffer(init_or_size: Union[bytes,int], size: Optional[int]) -> Any : ... |
| 8 | def get_c_string(c_string: Any) -> bytes : ... |
| 9 | def get_raw_buffer(buf: Any) -> bytes : ... |
| 10 | def c_uint8_ptr(data: Union[bytes, memoryview, bytearray]) -> Any : ... |
| 11 | |
| 12 | class VoidPointer(object): |
| 13 | def get(self) -> Any : ... |
| 14 | def address_of(self) -> Any : ... |
| 15 | |
| 16 | class SmartPointer(object): |
| 17 | def __init__(self, raw_pointer: Any, destructor: Any) -> None : ... |
| 18 | def get(self) -> Any : ... |
| 19 | def release(self) -> Any : ... |
| 20 | |
| 21 | backend : str |
| 22 | null_pointer : Any |
| 23 | ffi: Any |
| 24 | |
| 25 | def load_pycryptodome_raw_lib(name: str, cdecl: str) -> Any : ... |
| 26 | def is_buffer(x: Any) -> bool : ... |
| 27 | def is_writeable_buffer(x: Any) -> bool : ... |