Searched refs:create_string_buffer (Results 1 – 11 of 11) sorted by relevance
/third_party/python/Lib/ctypes/test/ |
D | test_buffers.py | 8 b = create_string_buffer(32) 13 b = create_string_buffer(b"abc") 24 self.assertRaises(TypeError, create_string_buffer, "abc") 27 self.assertEqual(len(bytearray(create_string_buffer(0))), 0) 28 self.assertEqual(len(bytearray(create_string_buffer(1))), 1)
|
D | test_unicode.py | 52 buf = ctypes.create_string_buffer(b"abc") 55 buf = ctypes.create_string_buffer(b"ab\xe4\xf6\xfc")
|
D | test_memfunctions.py | 22 a = create_string_buffer(1000000) 33 a = create_string_buffer(1000000)
|
D | test_libc.py | 28 chars = create_string_buffer(b"spam, spam, and spam")
|
D | test_arrays.py | 111 p = create_string_buffer(b"foo")
|
/third_party/pulseaudio/src/tests/ |
D | volume-ui.py | 57 s = create_string_buffer(336) 119 s = create_string_buffer(320)
|
/third_party/python/Lib/ctypes/ |
D | __init__.py | 48 def create_string_buffer(init, size=None): function 73 return create_string_buffer(init, size)
|
/third_party/python/Doc/library/ |
D | ctypes.rst | 311 :func:`create_string_buffer` function which creates these in various ways. The 317 >>> p = create_string_buffer(3) # create a 3 byte buffer, initialized to NUL bytes 320 >>> p = create_string_buffer(b"Hello") # create a buffer containing a NUL terminated string 325 >>> p = create_string_buffer(b"Hello", 10) # create a 10 byte buffer 333 The :func:`create_string_buffer` function replaces the :func:`c_buffer` function 531 >>> s = create_string_buffer(b'\000' * 32) 1863 .. function:: create_string_buffer(init_or_size, size=None) 1876 .. audit-event:: ctypes.create_string_buffer init,size ctypes.create_string_buffer
|
/third_party/python/Doc/whatsnew/ |
D | 2.5.rst | 1709 modifiable memory area, use :func:`create_string_buffer`:: 1712 buf = ctypes.create_string_buffer(s)
|
/third_party/python/Lib/test/ |
D | test_os.py | 2418 buf = ctypes.create_string_buffer(len(msg))
|
/third_party/python/Misc/ |
D | HISTORY | 10231 - Issue #13840: The error message produced by ctypes.create_string_buffer 10274 - Issue #9651: Fix a crash when ctypes.create_string_buffer(0) was passed to
|