HomeSort by relevance Sort by last modified time
    Searched refs:c_char (Results 1 - 25 of 170) sorted by null

1 2 3 4 5 6 7

  /external/python/cpython3/Lib/ctypes/test/
test_bytes.py 8 x = c_char(b"x")
9 self.assertRaises(TypeError, c_char, "x")
13 c_char.from_param(b"x")
14 self.assertRaises(TypeError, c_char.from_param, "x")
15 (c_char * 3)(b"a", b"b", b"c")
16 self.assertRaises(TypeError, c_char * 3, "a", "b", "c")
39 _fields_ = [("a", c_char * 3)]
test_repr.py 12 class X(c_char):
25 self.assertEqual("c_char(b'x')", repr(c_char(b'x')))
test_delattr.py 14 delattr, (c_char * 5)(), "value")
test_libc.py 21 comparefunc = CFUNCTYPE(c_int, POINTER(c_char), POINTER(c_char))
29 lib.my_qsort(chars, len(chars)-1, sizeof(c_char), comparefunc(sort))
  /external/python/cpython2/Lib/ctypes/test/
test_stringptr.py 12 _fields_ = [("str", POINTER(c_char))]
23 # POINTER(c_char) and Python string is NOT compatible
24 # POINTER(c_char) and c_buffer() is compatible
50 strchr.argtypes = c_char_p, c_char
54 # POINTER(c_char) and Python string is NOT compatible
55 # POINTER(c_char) and c_buffer() is compatible
56 strchr.argtypes = POINTER(c_char), c_char
65 strchr.restype = POINTER(c_char)
test_repr.py 12 class X(c_char):
25 self.assertEqual("c_char('x')", repr(c_char('x')))
test_delattr.py 14 delattr, (c_char * 5)(), "value")
test_returnfuncptrs.py 14 get_strchr.restype = CFUNCTYPE(c_char_p, c_char_p, c_char)
29 strchr = CFUNCTYPE(c_char_p, c_char_p, c_char)(addr)
39 strchr = CFUNCTYPE(c_char_p, c_char_p, c_char)(("my_strchr", dll))
57 strchr = CFUNCTYPE(c_char_p, c_char_p, c_char)(
test_libc.py 17 comparefunc = CFUNCTYPE(c_int, POINTER(c_char), POINTER(c_char))
25 lib.my_qsort(chars, len(chars)-1, sizeof(c_char), comparefunc(sort))
  /prebuilts/gdb/darwin-x86/lib/python2.7/ctypes/test/
test_stringptr.py 12 _fields_ = [("str", POINTER(c_char))]
23 # POINTER(c_char) and Python string is NOT compatible
24 # POINTER(c_char) and c_buffer() is compatible
50 strchr.argtypes = c_char_p, c_char
54 # POINTER(c_char) and Python string is NOT compatible
55 # POINTER(c_char) and c_buffer() is compatible
56 strchr.argtypes = POINTER(c_char), c_char
65 strchr.restype = POINTER(c_char)
test_repr.py 12 class X(c_char):
25 self.assertEqual("c_char('x')", repr(c_char('x')))
test_delattr.py 14 delattr, (c_char * 5)(), "value")
test_returnfuncptrs.py 14 get_strchr.restype = CFUNCTYPE(c_char_p, c_char_p, c_char)
29 strchr = CFUNCTYPE(c_char_p, c_char_p, c_char)(addr)
39 strchr = CFUNCTYPE(c_char_p, c_char_p, c_char)(("my_strchr", dll))
57 strchr = CFUNCTYPE(c_char_p, c_char_p, c_char)(
  /prebuilts/gdb/linux-x86/lib/python2.7/ctypes/test/
test_stringptr.py 12 _fields_ = [("str", POINTER(c_char))]
23 # POINTER(c_char) and Python string is NOT compatible
24 # POINTER(c_char) and c_buffer() is compatible
50 strchr.argtypes = c_char_p, c_char
54 # POINTER(c_char) and Python string is NOT compatible
55 # POINTER(c_char) and c_buffer() is compatible
56 strchr.argtypes = POINTER(c_char), c_char
65 strchr.restype = POINTER(c_char)
test_repr.py 12 class X(c_char):
25 self.assertEqual("c_char('x')", repr(c_char('x')))
test_delattr.py 14 delattr, (c_char * 5)(), "value")
test_returnfuncptrs.py 14 get_strchr.restype = CFUNCTYPE(c_char_p, c_char_p, c_char)
29 strchr = CFUNCTYPE(c_char_p, c_char_p, c_char)(addr)
39 strchr = CFUNCTYPE(c_char_p, c_char_p, c_char)(("my_strchr", dll))
57 strchr = CFUNCTYPE(c_char_p, c_char_p, c_char)(
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ctypes/test/
test_stringptr.py 12 _fields_ = [("str", POINTER(c_char))]
23 # POINTER(c_char) and Python string is NOT compatible
24 # POINTER(c_char) and c_buffer() is compatible
50 strchr.argtypes = c_char_p, c_char
54 # POINTER(c_char) and Python string is NOT compatible
55 # POINTER(c_char) and c_buffer() is compatible
56 strchr.argtypes = POINTER(c_char), c_char
65 strchr.restype = POINTER(c_char)
test_repr.py 12 class X(c_char):
25 self.assertEqual("c_char('x')", repr(c_char('x')))
test_delattr.py 14 delattr, (c_char * 5)(), "value")
test_returnfuncptrs.py 14 get_strchr.restype = CFUNCTYPE(c_char_p, c_char_p, c_char)
29 strchr = CFUNCTYPE(c_char_p, c_char_p, c_char)(addr)
39 strchr = CFUNCTYPE(c_char_p, c_char_p, c_char)(("my_strchr", dll))
57 strchr = CFUNCTYPE(c_char_p, c_char_p, c_char)(
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/ctypes/test/
test_stringptr.py 12 _fields_ = [("str", POINTER(c_char))]
23 # POINTER(c_char) and Python string is NOT compatible
24 # POINTER(c_char) and c_buffer() is compatible
50 strchr.argtypes = c_char_p, c_char
54 # POINTER(c_char) and Python string is NOT compatible
55 # POINTER(c_char) and c_buffer() is compatible
56 strchr.argtypes = POINTER(c_char), c_char
65 strchr.restype = POINTER(c_char)
test_repr.py 12 class X(c_char):
25 self.assertEqual("c_char('x')", repr(c_char('x')))
test_delattr.py 14 delattr, (c_char * 5)(), "value")
test_returnfuncptrs.py 14 get_strchr.restype = CFUNCTYPE(c_char_p, c_char_p, c_char)
29 strchr = CFUNCTYPE(c_char_p, c_char_p, c_char)(addr)
39 strchr = CFUNCTYPE(c_char_p, c_char_p, c_char)(("my_strchr", dll))
57 strchr = CFUNCTYPE(c_char_p, c_char_p, c_char)(

Completed in 931 milliseconds

1 2 3 4 5 6 7