| 174 | |
| 175 | |
| 176 | class _CFuncTransport: |
| 177 | def __init__( |
| 178 | self, |
| 179 | c_func: "ctypes._FuncPointer", |
| 180 | py_func: Callable, |
| 181 | ) -> None: |
| 182 | add_ref(c_func) |
| 183 | self._c_func = c_func |
| 184 | self._py_func = py_func |
| 185 | |
| 186 | @property |
| 187 | def c_func(self) -> "ctypes._FuncPointer": |
| 188 | return self._c_func |
| 189 | |
| 190 | @property |
| 191 | def py_func(self) -> Callable: |
| 192 | return self._py_func |
| 193 | |
| 194 | |
| 195 | def _decode_type( |