Home
last modified time | relevance | path

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

/third_party/python/Objects/
Dbytearrayobject.c53 ptr = (void *) PyByteArray_AS_STRING(obj); in bytearray_getbuffer()
98 PyBuffer_ToContiguous(PyByteArray_AS_STRING(result), in _PyByteArray_FromBufferObject()
166 return PyByteArray_AS_STRING(self); in PyByteArray_AsString()
202 PyByteArray_AS_STRING(self)[size] = '\0'; /* Trailing null */ in PyByteArray_Resize()
228 memcpy(sval, PyByteArray_AS_STRING(self), in PyByteArray_Resize()
314 memcpy(PyByteArray_AS_STRING(self) + size, vo.buf, vo.len); in bytearray_iconcat()
330 const char* buf = PyByteArray_AS_STRING(self); in bytearray_repeat()
354 char* buf = PyByteArray_AS_STRING(self); in bytearray_irepeat()
402 PyByteArray_AS_STRING(self) + start, slicelength); in bytearray_subscript()
405 char *source_buf = PyByteArray_AS_STRING(self); in bytearray_subscript()
[all …]
Dbytesobject.c496 *p = PyByteArray_AS_STRING(arg)[0]; in byte_converter()
537 *pbuf = PyByteArray_AS_STRING(v); in format_obj()
3322 return PyByteArray_AS_STRING(writer->buffer); in _PyBytesWriter_AsString()
3422 dest = PyByteArray_AS_STRING(writer->buffer); in _PyBytesWriter_Resize()
Dfloatobject.c222 s = PyByteArray_AS_STRING(v); in PyFloat_FromString()
Dabstract.c1610 return _PyLong_FromBytes(PyByteArray_AS_STRING(o), in PyNumber_Long()
Dlongobject.c5387 string = PyByteArray_AS_STRING(x); in long_new_impl()
Dunicodeobject.c3904 b = PyBytes_FromStringAndSize(PyByteArray_AS_STRING(v), in PyUnicode_AsEncodedString()
/third_party/python/Include/cpython/
Dbytearrayobject.h20 static inline char* PyByteArray_AS_STRING(PyObject *op) in PyByteArray_AS_STRING() function
29 # define PyByteArray_AS_STRING(self) PyByteArray_AS_STRING(_PyObject_CAST(self)) macro
/third_party/python/Objects/stringlib/clinic/
Dtransmogrify.h.h90 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/Modules/clinic/
D_testclinic.c.h236 a = PyByteArray_AS_STRING(args[0])[0]; in char_converter()
249 b = PyByteArray_AS_STRING(args[1])[0]; in char_converter()
262 c = PyByteArray_AS_STRING(args[2])[0]; in char_converter()
275 d = PyByteArray_AS_STRING(args[3])[0]; in char_converter()
288 e = PyByteArray_AS_STRING(args[4])[0]; in char_converter()
301 f = PyByteArray_AS_STRING(args[5])[0]; in char_converter()
314 g = PyByteArray_AS_STRING(args[6])[0]; in char_converter()
327 h = PyByteArray_AS_STRING(args[7])[0]; in char_converter()
340 i = PyByteArray_AS_STRING(args[8])[0]; in char_converter()
353 j = PyByteArray_AS_STRING(args[9])[0]; in char_converter()
[all …]
/third_party/python/Modules/_io/
Diobase.c619 memcpy(PyByteArray_AS_STRING(buffer) + old_size, in _io__IOBase_readline_impl()
624 if (PyByteArray_AS_STRING(buffer)[PyByteArray_GET_SIZE(buffer) - 1] == '\n') in _io__IOBase_readline_impl()
628 result = PyBytes_FromStringAndSize(PyByteArray_AS_STRING(buffer), in _io__IOBase_readline_impl()
/third_party/python/PC/clinic/
Dmsvcrtmodule.c.h345 char_value = PyByteArray_AS_STRING(arg)[0]; in msvcrt_putch()
419 char_value = PyByteArray_AS_STRING(arg)[0]; in msvcrt_ungetch()
/third_party/python/Doc/c-api/
Dbytearray.rst78 .. c:function:: char* PyByteArray_AS_STRING(PyObject *bytearray)
/third_party/python/Lib/test/
Dclinic.test502 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/Modules/
D_struct.c1844 p = PyByteArray_AS_STRING(v); in s_pack_internal()
1866 p = PyByteArray_AS_STRING(v); in s_pack_internal()
Dpyexpat.c785 ptr = PyByteArray_AS_STRING(str); in readinst()
D_pickle.c2510 return _save_bytearray_data(self, obj, PyByteArray_AS_STRING(obj), in save_bytearray()
5575 if (_Unpickler_ReadInto(self, PyByteArray_AS_STRING(bytearray), size) < 0) { in load_counted_bytearray()
D_testcapimodule.c1857 str = PyByteArray_AS_STRING(buffer); in getargs_es_hash()
1880 str = PyByteArray_AS_STRING(buffer); in getargs_et_hash()
D_ssl.c3761 data = PyByteArray_AS_STRING(password); in _pwinfo_set()
/third_party/python/Python/
Dgetargs.c860 *p = PyByteArray_AS_STRING(arg)[0]; in convertsimple()
1109 ptr = PyByteArray_AS_STRING(s); in convertsimple()
Dpythonrun.c1840 str = PyByteArray_AS_STRING(cmd); in _Py_SourceAsString()
Dbltinmodule.c1930 ord = (long)((unsigned char)*PyByteArray_AS_STRING(c)); in builtin_ord()
/third_party/python/Modules/_ctypes/
Dcfield.c1115 *(char *)ptr = PyByteArray_AS_STRING(value)[0]; in c_set()
/third_party/python/Doc/data/
Drefcounts.dat74 PyByteArray_AS_STRING:char*:::
75 PyByteArray_AS_STRING:PyObject*:bytearray:0:
/third_party/python/Misc/
DHISTORY12886 crash in many places because of the PyByteArray_AS_STRING() macro returning