| /external/python/cpython3/Objects/ |
| D | bytearrayobject.c | 51 ptr = (void *) PyByteArray_AS_STRING(obj); in bytearray_getbuffer() 96 PyBuffer_ToContiguous(PyByteArray_AS_STRING(result), in _PyByteArray_FromBufferObject() 164 return PyByteArray_AS_STRING(self); in PyByteArray_AsString() 200 PyByteArray_AS_STRING(self)[size] = '\0'; /* Trailing null */ in PyByteArray_Resize() 226 memcpy(sval, PyByteArray_AS_STRING(self), in PyByteArray_Resize() 312 memcpy(PyByteArray_AS_STRING(self) + size, vo.buf, vo.len); in bytearray_iconcat() 333 buf = PyByteArray_AS_STRING(self); in bytearray_repeat() 362 buf = PyByteArray_AS_STRING(self); in bytearray_irepeat() 382 return PyLong_FromLong((unsigned char)(PyByteArray_AS_STRING(self)[i])); in bytearray_getitem() 401 return PyLong_FromLong((unsigned char)(PyByteArray_AS_STRING(self)[i])); in bytearray_subscript() [all …]
|
| D | bytesobject.c | 526 *p = PyByteArray_AS_STRING(arg)[0]; in byte_converter() 567 *pbuf = PyByteArray_AS_STRING(v); in format_obj() 3274 return PyByteArray_AS_STRING(writer->buffer); in _PyBytesWriter_AsString() 3374 dest = PyByteArray_AS_STRING(writer->buffer); in _PyBytesWriter_Resize()
|
| D | floatobject.c | 203 s = PyByteArray_AS_STRING(v); in PyFloat_FromString()
|
| D | abstract.c | 1617 return _PyLong_FromBytes(PyByteArray_AS_STRING(o), in PyNumber_Long()
|
| /external/python/cpython2/Objects/ |
| D | bytearrayobject.c | 70 *ptr = (void *)PyByteArray_AS_STRING(self); in bytearray_buffer_getreadbuf() 82 *ptr = (void *)PyByteArray_AS_STRING(self); in bytearray_buffer_getwritebuf() 102 *ptr = PyByteArray_AS_STRING(self); in bytearray_buffer_getcharbuf() 115 ptr = (void *) PyByteArray_AS_STRING(obj); in bytearray_getbuffer() 178 PyBuffer_ToContiguous(PyByteArray_AS_STRING(result), in _PyByteArray_FromBufferObject() 240 return PyByteArray_AS_STRING(self); in PyByteArray_AsString() 471 char *source_buf = PyByteArray_AS_STRING(self); in bytearray_subscript() 506 values = PyByteArray_FromStringAndSize(PyByteArray_AS_STRING(values), in bytearray_setslice() 922 PyByteArray_AS_STRING(self)[Py_SIZE(self)] = '\0'; in bytearray_init() 971 start = PyByteArray_AS_STRING(self); in bytearray_repr() [all …]
|
| D | bytesobject.c | 496 *p = PyByteArray_AS_STRING(arg)[0]; in byte_converter() 548 *pbuf = PyByteArray_AS_STRING(v); in format_obj() 3191 return PyByteArray_AS_STRING(writer->buffer); in _PyBytesWriter_AsString() 3290 dest = PyByteArray_AS_STRING(writer->buffer); in _PyBytesWriter_Resize()
|
| /external/python/cpython3/Objects/stringlib/clinic/ |
| D | transmogrify.h.h | 90 fillchar = PyByteArray_AS_STRING(args[1])[0]; in stringlib_ljust() 146 fillchar = PyByteArray_AS_STRING(args[1])[0]; in stringlib_rjust() 202 fillchar = PyByteArray_AS_STRING(args[1])[0]; in stringlib_center()
|
| /external/python/cpython3/Include/cpython/ |
| D | bytearrayobject.h | 15 #define PyByteArray_AS_STRING(self) \ macro
|
| /external/python/cpython2/Include/ |
| D | bytearrayobject.h | 47 #define PyByteArray_AS_STRING(self) \ macro
|
| /external/python/cpython3/Modules/_io/ |
| D | iobase.c | 625 memcpy(PyByteArray_AS_STRING(buffer) + old_size, in _io__IOBase_readline_impl() 630 if (PyByteArray_AS_STRING(buffer)[PyByteArray_GET_SIZE(buffer) - 1] == '\n') in _io__IOBase_readline_impl() 634 result = PyBytes_FromStringAndSize(PyByteArray_AS_STRING(buffer), in _io__IOBase_readline_impl()
|
| /external/python/cpython2/Modules/_io/ |
| D | iobase.c | 546 memcpy(PyByteArray_AS_STRING(buffer) + old_size, in iobase_readline() 551 if (PyByteArray_AS_STRING(buffer)[PyByteArray_GET_SIZE(buffer) - 1] == '\n') in iobase_readline() 555 result = PyBytes_FromStringAndSize(PyByteArray_AS_STRING(buffer), in iobase_readline()
|
| /external/python/cpython3/PC/clinic/ |
| D | msvcrtmodule.c.h | 345 char_value = PyByteArray_AS_STRING(arg)[0]; in msvcrt_putch() 419 char_value = PyByteArray_AS_STRING(arg)[0]; in msvcrt_ungetch()
|
| /external/python/cpython2/Doc/c-api/ |
| D | bytearray.rst | 80 .. c:function:: char* PyByteArray_AS_STRING(PyObject *bytearray)
|
| /external/python/cpython3/Doc/c-api/ |
| D | bytearray.rst | 80 .. c:function:: char* PyByteArray_AS_STRING(PyObject *bytearray)
|
| /external/python/cpython3/Lib/test/ |
| D | clinic.test | 502 a = PyByteArray_AS_STRING(args[0])[0]; 515 b = PyByteArray_AS_STRING(args[1])[0]; 528 c = PyByteArray_AS_STRING(args[2])[0]; 541 d = PyByteArray_AS_STRING(args[3])[0]; 554 e = PyByteArray_AS_STRING(args[4])[0]; 567 f = PyByteArray_AS_STRING(args[5])[0]; 580 g = PyByteArray_AS_STRING(args[6])[0]; 593 h = PyByteArray_AS_STRING(args[7])[0]; 606 i = PyByteArray_AS_STRING(args[8])[0]; 619 j = PyByteArray_AS_STRING(args[9])[0]; [all …]
|
| /external/python/cpython2/Misc/NEWS.d/ |
| D | 2.7a3.rst | 71 many places because of the ``PyByteArray_AS_STRING()`` macro returning NULL.
|
| /external/python/cpython3/Modules/ |
| D | _struct.c | 1826 p = PyByteArray_AS_STRING(v); in s_pack_internal() 1848 p = PyByteArray_AS_STRING(v); in s_pack_internal()
|
| D | pyexpat.c | 783 ptr = PyByteArray_AS_STRING(str); in readinst()
|
| /external/python/cpython3/Python/ |
| D | getargs.c | 859 *p = PyByteArray_AS_STRING(arg)[0]; in convertsimple() 1108 ptr = PyByteArray_AS_STRING(s); in convertsimple()
|
| D | pythonrun.c | 1417 str = PyByteArray_AS_STRING(cmd); in _Py_SourceAsString()
|
| D | bltinmodule.c | 1903 ord = (long)((unsigned char)*PyByteArray_AS_STRING(c)); in builtin_ord()
|
| /external/python/cpython2/Modules/ |
| D | _testcapimodule.c | 1527 str = PyByteArray_AS_STRING(buffer); in getargs_es_hash() 1551 str = PyByteArray_AS_STRING(buffer); in getargs_et_hash()
|
| /external/python/cpython3/Modules/_ctypes/ |
| D | cfield.c | 1114 *(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/cpython2/Python/ |
| D | bltinmodule.c | 1531 ord = (long)((unsigned char)*PyByteArray_AS_STRING(obj)); in builtin_ord()
|