Home
last modified time | relevance | path

Searched refs:require_writable (Results 1 – 7 of 7) sorted by relevance

/external/python/cffi/testing/cffi1/
Dtest_ffi_obj.py253 assert c == ffi.from_buffer(a, require_writable=True)
267 assert p == ffi.from_buffer(b"abcd", require_writable=False)
271 require_writable=True)
/external/python/cffi/testing/cffi0/
Dtest_ffi_backend.py375 assert c == ffi.from_buffer(a, require_writable=True)
384 assert p == ffi.from_buffer(b"abcd", require_writable=False)
388 require_writable=True)
/external/python/cffi/c/
Dffi_obj.c705 int require_writable = 0; in ffi_from_buffer() local
710 &cdecl1, &python_buf, &require_writable)) in ffi_from_buffer()
722 return direct_from_buffer(ct, python_buf, require_writable); in ffi_from_buffer()
D_cffi_backend.c7192 int require_writable) in direct_from_buffer() argument
7220 if (_my_PyObject_GetContiguousBuffer(x, view, require_writable) < 0) in direct_from_buffer()
7291 int require_writable = 0; in b_from_buffer() local
7294 &require_writable)) in b_from_buffer()
7297 return direct_from_buffer(ct, x, require_writable); in b_from_buffer()
/external/python/cffi/cffi/
Dapi.py351 require_writable=False): argument
366 require_writable)
/external/python/cffi/doc/source/
Dref.rst206 **ffi.from_buffer([cdecl,] python_buffer, require_writable=False)**:
238 the keyword argument ``require_writable``:
259 * if ``require_writable`` is set to True, the function fails if the buffer
267 ``require_writable`` to False explicitly, you still get a regular
Dwhatsnew.rst211 ``require_writable`` to refuse read-only Python buffers.