Home
last modified time | relevance | path

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

12

/external/python/cpython3/Objects/
Dbytearrayobject.c51 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 …]
Dbytesobject.c526 *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()
Dfloatobject.c203 s = PyByteArray_AS_STRING(v); in PyFloat_FromString()
Dabstract.c1617 return _PyLong_FromBytes(PyByteArray_AS_STRING(o), in PyNumber_Long()
/external/python/cpython2/Objects/
Dbytearrayobject.c70 *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 …]
Dbytesobject.c496 *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/
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()
/external/python/cpython3/Include/cpython/
Dbytearrayobject.h15 #define PyByteArray_AS_STRING(self) \ macro
/external/python/cpython2/Include/
Dbytearrayobject.h47 #define PyByteArray_AS_STRING(self) \ macro
/external/python/cpython3/Modules/_io/
Diobase.c625 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/
Diobase.c546 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/
Dmsvcrtmodule.c.h345 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/
Dbytearray.rst80 .. c:function:: char* PyByteArray_AS_STRING(PyObject *bytearray)
/external/python/cpython3/Doc/c-api/
Dbytearray.rst80 .. c:function:: char* PyByteArray_AS_STRING(PyObject *bytearray)
/external/python/cpython3/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 …]
/external/python/cpython2/Misc/NEWS.d/
D2.7a3.rst71 many places because of the ``PyByteArray_AS_STRING()`` macro returning NULL.
/external/python/cpython3/Modules/
D_struct.c1826 p = PyByteArray_AS_STRING(v); in s_pack_internal()
1848 p = PyByteArray_AS_STRING(v); in s_pack_internal()
Dpyexpat.c783 ptr = PyByteArray_AS_STRING(str); in readinst()
/external/python/cpython3/Python/
Dgetargs.c859 *p = PyByteArray_AS_STRING(arg)[0]; in convertsimple()
1108 ptr = PyByteArray_AS_STRING(s); in convertsimple()
Dpythonrun.c1417 str = PyByteArray_AS_STRING(cmd); in _Py_SourceAsString()
Dbltinmodule.c1903 ord = (long)((unsigned char)*PyByteArray_AS_STRING(c)); in builtin_ord()
/external/python/cpython2/Modules/
D_testcapimodule.c1527 str = PyByteArray_AS_STRING(buffer); in getargs_es_hash()
1551 str = PyByteArray_AS_STRING(buffer); in getargs_et_hash()
/external/python/cpython3/Modules/_ctypes/
Dcfield.c1114 *(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/cpython2/Python/
Dbltinmodule.c1531 ord = (long)((unsigned char)*PyByteArray_AS_STRING(obj)); in builtin_ord()

12