_raw_api.pyi 933 B

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