Home
last modified time | relevance | path

Searched refs:PyByteArray_AS_STRING (Results 1 – 24 of 24) sorted by relevance

/external/python/cpython3/Objects/
Dbytearrayobject.c52 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 …]
Dbytesobject.c485 *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()
Dfloatobject.c220 s = PyByteArray_AS_STRING(v); in PyFloat_FromString()
Dabstract.c1611 return _PyLong_FromBytes(PyByteArray_AS_STRING(o), in PyNumber_Long()
Dlongobject.c5891 string = PyByteArray_AS_STRING(x); in long_new_impl()
Dunicodeobject.c3813 b = PyBytes_FromStringAndSize(PyByteArray_AS_STRING(v), in PyUnicode_AsEncodedString()
/external/python/cpython3/Include/cpython/
Dbytearrayobject.h20 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/
Dtransmogrify.h.h120 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.h241 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/
Diobase.c649 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/
Dmsvcrtmodule.c.h362 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/
Dclinic.test.c557 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/
Dbytearray.rst83 .. c:function:: char* PyByteArray_AS_STRING(PyObject *bytearray)
/external/python/cpython3/Modules/_testcapi/
Dgetargs.c711 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.c1967 p = PyByteArray_AS_STRING(v); in s_pack_internal()
1989 p = PyByteArray_AS_STRING(v); in s_pack_internal()
Dpyexpat.c824 ptr = PyByteArray_AS_STRING(str); in readinst()
D_pickle.c2508 PyByteArray_AS_STRING(obj), in save_bytearray()
5535 char *str = PyByteArray_AS_STRING(bytearray); in load_counted_bytearray()
D_ssl.c3936 data = PyByteArray_AS_STRING(password); in _pwinfo_set()
/external/python/cpython3/Python/
Dgetargs.c801 *p = PyByteArray_AS_STRING(arg)[0]; in convertsimple()
992 ptr = PyByteArray_AS_STRING(s); in convertsimple()
Dpythonrun.c1532 str = PyByteArray_AS_STRING(cmd); in _Py_SourceAsString()
Dbltinmodule.c2001 ord = (long)((unsigned char)*PyByteArray_AS_STRING(c)); in builtin_ord()
/external/python/cpython3/Modules/_ctypes/
Dcfield.c1108 *(char *)ptr = PyByteArray_AS_STRING(value)[0]; in c_set()
/external/python/cpython3/Doc/data/
Drefcounts.dat74 PyByteArray_AS_STRING:char*:::
75 PyByteArray_AS_STRING:PyObject*:bytearray:0:
/external/python/cpython3/Misc/
DHISTORY12886 crash in many places because of the PyByteArray_AS_STRING() macro returning