Home
last modified time | relevance | path

Searched refs:PyByteArray_FromStringAndSize (Results 1 – 21 of 21) sorted by relevance

/external/python/cpython3/Objects/
Dbytearrayobject.c102 result = PyByteArray_FromStringAndSize(NULL, view.len); in _PyByteArray_FromBufferObject()
114 PyByteArray_FromStringAndSize(const char *bytes, Py_ssize_t size) in PyByteArray_FromStringAndSize() function
275 PyByteArray_FromStringAndSize(NULL, va.len + vb.len); in PyByteArray_Concat()
339 result = (PyByteArrayObject *)PyByteArray_FromStringAndSize(NULL, size); in bytearray_repeat()
419 return PyByteArray_FromStringAndSize("", 0); in bytearray_subscript()
421 return PyByteArray_FromStringAndSize( in bytearray_subscript()
429 result = PyByteArray_FromStringAndSize(NULL, slicelength); in bytearray_subscript()
546 values = PyByteArray_FromStringAndSize(PyByteArray_AS_STRING(values), in bytearray_setslice()
1093 #define STRINGLIB_NEW PyByteArray_FromStringAndSize
1146 return PyByteArray_FromStringAndSize(PyByteArray_AS_STRING((PyObject *)self), in bytearray_copy_impl()
[all …]
Dbytesobject.c3346 writer->buffer = PyByteArray_FromStringAndSize(NULL, allocated); in _PyBytesWriter_Resize()
3456 result = PyByteArray_FromStringAndSize(writer->small_buffer, size); in _PyBytesWriter_Finish()
/external/python/cpython2/Objects/
Dbytearrayobject.c176 result = PyByteArray_FromStringAndSize(NULL, view.len); in _PyByteArray_FromBufferObject()
188 PyByteArray_FromStringAndSize(const char *bytes, Py_ssize_t size) in PyByteArray_FromStringAndSize() function
314 PyByteArray_FromStringAndSize(NULL, va.len + vb.len); in PyByteArray_Concat()
382 result = (PyByteArrayObject *)PyByteArray_FromStringAndSize(NULL, size); in bytearray_repeat()
465 return PyByteArray_FromStringAndSize("", 0); in bytearray_subscript()
467 return PyByteArray_FromStringAndSize(self->ob_bytes + start, in bytearray_subscript()
482 result = PyByteArray_FromStringAndSize(result_buf, slicelength); in bytearray_subscript()
506 values = PyByteArray_FromStringAndSize(PyByteArray_AS_STRING(values), in bytearray_setslice()
1141 #define STRINGLIB_NEW PyByteArray_FromStringAndSize
1508 result = PyByteArray_FromStringAndSize((char *)NULL, inlen); in bytearray_translate()
[all …]
Dbytesobject.c3281 writer->buffer = PyByteArray_FromStringAndSize(NULL, allocated); in _PyBytesWriter_Resize()
3390 result = PyByteArray_FromStringAndSize(writer->small_buffer, size); in _PyBytesWriter_Finish()
/external/python/cpython3/Include/
Dbytearrayobject.h32 PyAPI_FUNC(PyObject *) PyByteArray_FromStringAndSize(const char *, Py_ssize_t);
/external/python/cpython2/Include/
Dbytearrayobject.h41 PyAPI_FUNC(PyObject *) PyByteArray_FromStringAndSize(const char *, Py_ssize_t);
/external/python/cpython2/Doc/c-api/
Dbytearray.rst49 .. c:function:: PyObject* PyByteArray_FromStringAndSize(const char *string, Py_ssize_t len)
/external/python/cpython3/Doc/c-api/
Dbytearray.rst48 .. c:function:: PyObject* PyByteArray_FromStringAndSize(const char *string, Py_ssize_t len)
/external/python/cpython2/Modules/_io/
Diobase.c471 buffer = PyByteArray_FromStringAndSize(NULL, 0); in iobase_readline()
816 b = PyByteArray_FromStringAndSize(NULL, n); in rawiobase_read()
/external/python/cpython3/Modules/_io/
Diobase.c547 buffer = PyByteArray_FromStringAndSize(NULL, 0); in _io__IOBase_readline_impl()
927 b = PyByteArray_FromStringAndSize(NULL, n); in _io__RawIOBase_read_impl()
/external/dtc/pylibfdt/
Dlibfdt.i1033 buff = PyByteArray_FromStringAndSize(
/external/python/cpython3/PC/
Dpython3.def19 PyByteArray_FromStringAndSize=python39.PyByteArray_FromStringAndSize
/external/python/cpython3/Modules/_sqlite/
Dcursor.c315 converted = PyByteArray_FromStringAndSize(val_str, nbytes); in _pysqlite_fetch_one_row()
/external/libnl/python/netlink/
Dcapi.i810 $result = PyByteArray_FromStringAndSize($1, nla_len(arg1));
/external/llvm-project/lldb/unittests/ScriptInterpreter/Python/
DPythonDataObjectsTests.cpp245 PyByteArray_FromStringAndSize(test_bytes, orig_bytes.size()); in TEST_F()
/external/python/cpython3/Doc/data/
Drefcounts.dat93 PyByteArray_FromStringAndSize:PyObject*::+1:
94 PyByteArray_FromStringAndSize:const char*:string::
95 PyByteArray_FromStringAndSize:Py_ssize_t:len::
/external/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/
DPythonDataObjects.cpp336 *this = Take<PythonByteArray>(PyByteArray_FromStringAndSize(str, length)); in PythonByteArray()
/external/python/cpython3/Parser/
Dtokenizer.c381 tok->decoding_buffer = PyByteArray_FromStringAndSize(buf+size, in fp_readl()
/external/python/cpython3/Modules/
D_pickle.c5566 bytearray = PyByteArray_FromStringAndSize(NULL, size); in load_counted_bytearray()
/external/python/cpython2/Doc/whatsnew/
D2.6.rst1012 :c:func:`PyByteArray_FromStringAndSize`,
/external/python/cpython3/Doc/whatsnew/
D2.6.rst1016 :c:func:`PyByteArray_FromStringAndSize`,