Searched refs:PyByteArray_AS_STRING (Results 1 – 23 of 23) sorted by relevance
| /third_party/python/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()
|
| D | longobject.c | 4991 string = PyByteArray_AS_STRING(x); in long_new_impl()
|
| D | unicodeobject.c | 3974 b = PyBytes_FromStringAndSize(PyByteArray_AS_STRING(v), in PyUnicode_AsEncodedString()
|
| /third_party/python/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()
|
| /third_party/python/Include/cpython/ |
| D | bytearrayobject.h | 15 #define PyByteArray_AS_STRING(self) \ macro
|
| /third_party/python/Modules/_io/ |
| D | iobase.c | 626 memcpy(PyByteArray_AS_STRING(buffer) + old_size, in _io__IOBase_readline_impl() 631 if (PyByteArray_AS_STRING(buffer)[PyByteArray_GET_SIZE(buffer) - 1] == '\n') in _io__IOBase_readline_impl() 635 result = PyBytes_FromStringAndSize(PyByteArray_AS_STRING(buffer), in _io__IOBase_readline_impl()
|
| /third_party/python/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()
|
| /third_party/python/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 …]
|
| /third_party/python/Doc/c-api/ |
| D | bytearray.rst | 80 .. c:function:: char* PyByteArray_AS_STRING(PyObject *bytearray)
|
| /third_party/python/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()
|
| D | _testcapimodule.c | 1662 str = PyByteArray_AS_STRING(buffer); in getargs_es_hash() 1685 str = PyByteArray_AS_STRING(buffer); in getargs_et_hash()
|
| D | _pickle.c | 2509 return _save_bytearray_data(self, obj, PyByteArray_AS_STRING(obj), in save_bytearray() 5566 if (_Unpickler_ReadInto(self, PyByteArray_AS_STRING(bytearray), size) < 0) { in load_counted_bytearray()
|
| D | _ssl.c | 3723 data = PyByteArray_AS_STRING(password); in _pwinfo_set()
|
| /third_party/python/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()
|
| /third_party/python/Modules/_ctypes/ |
| D | cfield.c | 1114 *(char *)ptr = PyByteArray_AS_STRING(value)[0]; in c_set()
|
| /third_party/python/Doc/data/ |
| D | refcounts.dat | 74 PyByteArray_AS_STRING:char*::: 75 PyByteArray_AS_STRING:PyObject*:bytearray:0:
|
| /third_party/python/Misc/ |
| D | HISTORY | 12886 crash in many places because of the PyByteArray_AS_STRING() macro returning
|