/external/python/cpython3/Objects/ |
D | bytearrayobject.c | 52 void *ptr = (void *) PyByteArray_AS_STRING(obj); in bytearray_getbuffer() 99 PyBuffer_ToContiguous(PyByteArray_AS_STRING(result), in _PyByteArray_FromBufferObject() 167 return PyByteArray_AS_STRING(self); in PyByteArray_AsString() 203 PyByteArray_AS_STRING(self)[size] = '\0'; /* Trailing null */ in PyByteArray_Resize() 229 memcpy(sval, PyByteArray_AS_STRING(self), in PyByteArray_Resize() 315 memcpy(PyByteArray_AS_STRING(self) + size, vo.buf, vo.len); in bytearray_iconcat() 330 const char* buf = PyByteArray_AS_STRING(self); in bytearray_repeat() 353 char* buf = PyByteArray_AS_STRING(self); in bytearray_irepeat() 400 PyByteArray_AS_STRING(self) + start, slicelength); in bytearray_subscript() 403 char *source_buf = PyByteArray_AS_STRING(self); in bytearray_subscript() [all …]
|
D | bytesobject.c | 485 *p = PyByteArray_AS_STRING(arg)[0]; in byte_converter() 525 *pbuf = PyByteArray_AS_STRING(v); in format_obj() 3386 return PyByteArray_AS_STRING(writer->buffer); in _PyBytesWriter_AsString() 3486 dest = PyByteArray_AS_STRING(writer->buffer); in _PyBytesWriter_Resize()
|
D | floatobject.c | 220 s = PyByteArray_AS_STRING(v); in PyFloat_FromString()
|
D | abstract.c | 1611 return _PyLong_FromBytes(PyByteArray_AS_STRING(o), in PyNumber_Long()
|
D | longobject.c | 5891 string = PyByteArray_AS_STRING(x); in long_new_impl()
|
D | unicodeobject.c | 3813 b = PyBytes_FromStringAndSize(PyByteArray_AS_STRING(v), in PyUnicode_AsEncodedString()
|
/external/python/cpython3/Include/cpython/ |
D | bytearrayobject.h | 20 static inline char* PyByteArray_AS_STRING(PyObject *op) in PyByteArray_AS_STRING() function 28 #define PyByteArray_AS_STRING(self) PyByteArray_AS_STRING(_PyObject_CAST(self)) macro
|
/external/python/cpython3/Objects/stringlib/clinic/ |
D | transmogrify.h.h | 120 fillchar = PyByteArray_AS_STRING(args[1])[0]; in stringlib_ljust() 176 fillchar = PyByteArray_AS_STRING(args[1])[0]; in stringlib_rjust() 232 fillchar = PyByteArray_AS_STRING(args[1])[0]; in stringlib_center()
|
/external/python/cpython3/Modules/clinic/ |
D | _testclinic.c.h | 241 a = PyByteArray_AS_STRING(args[0])[0]; in char_converter() 254 b = PyByteArray_AS_STRING(args[1])[0]; in char_converter() 267 c = PyByteArray_AS_STRING(args[2])[0]; in char_converter() 280 d = PyByteArray_AS_STRING(args[3])[0]; in char_converter() 293 e = PyByteArray_AS_STRING(args[4])[0]; in char_converter() 306 f = PyByteArray_AS_STRING(args[5])[0]; in char_converter() 319 g = PyByteArray_AS_STRING(args[6])[0]; in char_converter() 332 h = PyByteArray_AS_STRING(args[7])[0]; in char_converter() 345 i = PyByteArray_AS_STRING(args[8])[0]; in char_converter() 358 j = PyByteArray_AS_STRING(args[9])[0]; in char_converter() [all …]
|
/external/python/cpython3/Modules/_io/ |
D | iobase.c | 649 memcpy(PyByteArray_AS_STRING(buffer) + old_size, in _io__IOBase_readline_impl() 654 if (PyByteArray_AS_STRING(buffer)[PyByteArray_GET_SIZE(buffer) - 1] == '\n') in _io__IOBase_readline_impl() 658 result = PyBytes_FromStringAndSize(PyByteArray_AS_STRING(buffer), in _io__IOBase_readline_impl()
|
/external/python/cpython3/PC/clinic/ |
D | msvcrtmodule.c.h | 362 char_value = PyByteArray_AS_STRING(arg)[0]; in msvcrt_putch() 437 char_value = PyByteArray_AS_STRING(arg)[0]; in msvcrt_ungetch()
|
/external/python/cpython3/Lib/test/ |
D | clinic.test.c | 557 a = PyByteArray_AS_STRING(args[0])[0]; in test_char_converter() 570 b = PyByteArray_AS_STRING(args[1])[0]; in test_char_converter() 583 c = PyByteArray_AS_STRING(args[2])[0]; in test_char_converter() 596 d = PyByteArray_AS_STRING(args[3])[0]; in test_char_converter() 609 e = PyByteArray_AS_STRING(args[4])[0]; in test_char_converter() 622 f = PyByteArray_AS_STRING(args[5])[0]; in test_char_converter() 635 g = PyByteArray_AS_STRING(args[6])[0]; in test_char_converter() 648 h = PyByteArray_AS_STRING(args[7])[0]; in test_char_converter() 661 i = PyByteArray_AS_STRING(args[8])[0]; in test_char_converter() 674 j = PyByteArray_AS_STRING(args[9])[0]; in test_char_converter() [all …]
|
/external/python/cpython3/Doc/c-api/ |
D | bytearray.rst | 83 .. c:function:: char* PyByteArray_AS_STRING(PyObject *bytearray)
|
/external/python/cpython3/Modules/_testcapi/ |
D | getargs.c | 711 str = PyByteArray_AS_STRING(buffer); in getargs_es_hash() 737 str = PyByteArray_AS_STRING(buffer); in getargs_et_hash()
|
/external/python/cpython3/Modules/ |
D | _struct.c | 1967 p = PyByteArray_AS_STRING(v); in s_pack_internal() 1989 p = PyByteArray_AS_STRING(v); in s_pack_internal()
|
D | pyexpat.c | 824 ptr = PyByteArray_AS_STRING(str); in readinst()
|
D | _pickle.c | 2508 PyByteArray_AS_STRING(obj), in save_bytearray() 5535 char *str = PyByteArray_AS_STRING(bytearray); in load_counted_bytearray()
|
D | _ssl.c | 3936 data = PyByteArray_AS_STRING(password); in _pwinfo_set()
|
/external/python/cpython3/Python/ |
D | getargs.c | 801 *p = PyByteArray_AS_STRING(arg)[0]; in convertsimple() 992 ptr = PyByteArray_AS_STRING(s); in convertsimple()
|
D | pythonrun.c | 1532 str = PyByteArray_AS_STRING(cmd); in _Py_SourceAsString()
|
D | bltinmodule.c | 2001 ord = (long)((unsigned char)*PyByteArray_AS_STRING(c)); in builtin_ord()
|
/external/python/cpython3/Modules/_ctypes/ |
D | cfield.c | 1108 *(char *)ptr = PyByteArray_AS_STRING(value)[0]; in c_set()
|
/external/python/cpython3/Doc/data/ |
D | refcounts.dat | 74 PyByteArray_AS_STRING:char*::: 75 PyByteArray_AS_STRING:PyObject*:bytearray:0:
|
/external/python/cpython3/Misc/ |
D | HISTORY | 12886 crash in many places because of the PyByteArray_AS_STRING() macro returning
|