Home
last modified time | relevance | path

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

/third_party/python/Lib/ctypes/test/
Dtest_buffers.py8 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)
Dtest_unicode.py52 buf = ctypes.create_string_buffer(b"abc")
55 buf = ctypes.create_string_buffer(b"ab\xe4\xf6\xfc")
Dtest_memfunctions.py22 a = create_string_buffer(1000000)
33 a = create_string_buffer(1000000)
Dtest_libc.py28 chars = create_string_buffer(b"spam, spam, and spam")
Dtest_arrays.py111 p = create_string_buffer(b"foo")
/third_party/pulseaudio/src/tests/
Dvolume-ui.py57 s = create_string_buffer(336)
119 s = create_string_buffer(320)
/third_party/python/Lib/ctypes/
D__init__.py48 def create_string_buffer(init, size=None): function
73 return create_string_buffer(init, size)
/third_party/python/Doc/library/
Dctypes.rst311 :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/
D2.5.rst1709 modifiable memory area, use :func:`create_string_buffer`::
1712 buf = ctypes.create_string_buffer(s)
/third_party/python/Lib/test/
Dtest_os.py2418 buf = ctypes.create_string_buffer(len(msg))
/third_party/python/Misc/
DHISTORY10231 - 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