Searched refs:require_writable (Results 1 – 7 of 7) sorted by relevance
/external/python/cffi/testing/cffi1/ |
D | test_ffi_obj.py | 253 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/ |
D | test_ffi_backend.py | 375 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/ |
D | ffi_obj.c | 705 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.c | 7192 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/ |
D | api.py | 351 require_writable=False): argument 366 require_writable)
|
/external/python/cffi/doc/source/ |
D | ref.rst | 206 **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
|
D | whatsnew.rst | 211 ``require_writable`` to refuse read-only Python buffers.
|