Searched refs:create_string_buffer (Results 1 – 16 of 16) sorted by relevance
/external/python/cpython2/Lib/ctypes/test/ |
D | test_buffers.py | 8 b = create_string_buffer(32) 13 b = create_string_buffer("abc") 25 self.assertEqual(len(bytearray(create_string_buffer(0))), 0) 26 self.assertEqual(len(bytearray(create_string_buffer(1))), 1) 29 b = create_string_buffer(u"abc")
|
D | test_unicode.py | 119 buf = ctypes.create_string_buffer(u"abc") 123 buf = ctypes.create_string_buffer(u"ab���") 131 buf = ctypes.create_string_buffer(u"ab���")
|
D | test_memfunctions.py | 21 a = create_string_buffer(1000000) 32 a = create_string_buffer(1000000)
|
D | test_libc.py | 24 chars = create_string_buffer("spam, spam, and spam")
|
D | test_arrays.py | 101 p = create_string_buffer("foo")
|
/external/python/cpython2/Lib/test/ |
D | test_ascii_formatd.py | 11 from ctypes import pythonapi, create_string_buffer, sizeof, byref, c_double 18 buf = create_string_buffer(' ' * 100) 31 buf = create_string_buffer(' ' * 100)
|
D | test_os.py | 316 buf = ctypes.create_string_buffer("", 100) 807 buf = ctypes.create_string_buffer(len(msg))
|
/external/autotest/client/common_lib/ |
D | smogcheck_tpm.py | 28 c_ubyte, c_byte, byref, c_uint16, cast, create_string_buffer, c_uint64, \ 106 vi.tpmVendorId = create_string_buffer(4) # Allocate 4 bytes 107 vendorDetail = create_string_buffer(64) # Allocate 64 bytes 435 well_known_secret = create_string_buffer(20) 519 well_known_secret = create_string_buffer(20) 567 well_known_secret = create_string_buffer(20)
|
/external/python/cpython2/Lib/ |
D | uuid.py | 395 buffer = ctypes.create_string_buffer(300) 494 _buffer = ctypes.create_string_buffer(16) 500 _buffer = ctypes.create_string_buffer(16) 550 _buffer = ctypes.create_string_buffer(16)
|
/external/chromium-trace/catapult/third_party/pyserial/serial/ |
D | serialwin32.py | 256 buf = ctypes.create_string_buffer(n) 266 buf = ctypes.create_string_buffer(size)
|
/external/python/cpython2/Lib/ctypes/ |
D | __init__.py | 49 def create_string_buffer(init, size=None): function 72 return create_string_buffer(init, size)
|
/external/autotest/client/site_tests/kernel_CryptoAPI/ |
D | kernel_CryptoAPI.py | 120 message = ctypes.create_string_buffer(data, len(data))
|
/external/chromium-trace/catapult/third_party/pyserial/serial/tools/ |
D | list_ports_osx.py | 122 pathname = ctypes.create_string_buffer(100) # TODO: Is this ok?
|
/external/python/cpython2/Doc/library/ |
D | ctypes.rst | 307 :func:`create_string_buffer` function which creates these in various ways. The 313 >>> p = create_string_buffer(3) # create a 3 byte buffer, initialized to NUL bytes 316 >>> p = create_string_buffer("Hello") # create a buffer containing a NUL terminated string 321 >>> p = create_string_buffer("Hello", 10) # create a 10 byte buffer 329 The :func:`create_string_buffer` function replaces the :func:`c_buffer` function 527 >>> s = create_string_buffer('\000' * 32) 1846 .. function:: create_string_buffer(init_or_size[, size])
|
/external/python/cpython2/Doc/whatsnew/ |
D | 2.5.rst | 1708 modifiable memory area, use :func:`create_string_buffer`:: 1711 buf = ctypes.create_string_buffer(s)
|
/external/python/cpython2/Misc/ |
D | NEWS | 4685 - Issue #9651: Fix a crash when ctypes.create_string_buffer(0) was passed to
|