Home
last modified time | relevance | path

Searched refs:from_handle (Results 1 – 11 of 11) sorted by relevance

/external/python/cffi/testing/cffi0/
Dtest_ffi_backend.py38 assert ffi.from_handle(p) is o
39 assert ffi.from_handle(ffi.cast("char *", p)) is o
40 py.test.raises(RuntimeError, ffi.from_handle, ffi.NULL)
/external/rust/crates/rusqlite/src/
Dcollation.rs120 let conn = Connection::from_handle(arg2).unwrap(); in collation_needed()
Dlib.rs765 pub unsafe fn from_handle(db: *mut ffi::sqlite3) -> Result<Connection> { in from_handle() method
1533 let db = unsafe { Connection::from_handle(handle) }.unwrap(); in test_from_handle()
/external/python/cffi/testing/cffi1/
Dtest_ffi_obj.py194 assert ffi.from_handle(xp) is x
196 assert ffi.from_handle(yp) == [6, 4, 2]
Dtest_new_ffi_1.py1656 assert ffi.from_handle(p) is o
1657 assert ffi.from_handle(ffi.cast("char *", p)) is o
1658 py.test.raises(RuntimeError, ffi.from_handle, ffi.NULL)
/external/python/cffi/doc/source/
Dref.rst457 ffi.new_handle(), ffi.from_handle()
463 you can use **ffi.from_handle(p)** to retrieve the original
465 *Calling ffi.from_handle(p) is invalid and will likely crash if
473 The ``ffi.new_handle()/from_handle()`` functions *conceptually* work
481 * ``from_handle(p)`` searches all live "handle" cdata objects for the
490 ``from_handle()`` will crash.
520 # ffi.from_handle() done in my_callback() during argument
529 return ffi.from_handle(data).callback(arg1, arg2)
Dusing.rst620 can use ``ffi.new_handle()`` and ``ffi.from_handle()`` to pass a
658 widget = ffi.from_handle(userdata)
687 widget = ffi.from_handle(ll_widget.userdata)
903 return ffi.from_handle(handle).some_method(x)
/external/python/cffi/cffi/
Dapi.py539 def from_handle(self, x): member in FFI
540 return self._backend.from_handle(x)
/external/python/pyopenssl/src/OpenSSL/
DSSL.py432 data = _ffi.from_handle(cdata)
499 data = _ffi.from_handle(cdata)
/external/python/cffi/c/
Dtest_c.py3212 assert from_handle(x) is o
3213 assert from_handle(cast(BCharP, x)) is o
3218 assert from_handle(x) == list((2, 3, 4))
3219 assert from_handle(cast(BCharP, x)) == list((2, 3, 4))
3225 py.test.raises(RuntimeError, from_handle, cast(BCharP, 0))
/external/mesa3d/docs/relnotes/
D20.3.0.rst3238 - etnaviv: don't import allocated scanout resources via from_handle