Home
last modified time | relevance | path

Searched refs:PyBytes_AsStringAndSize (Results 1 – 25 of 39) sorted by relevance

12

/external/tensorflow/tensorflow/lite/python/interpreter_wrapper/
Dnumpy.cc138 if (PyBytes_AsStringAndSize(utemp.get(), &buf, &len) == -1) { in FillStringBufferFromPyUnicode()
155 if (PyBytes_AsStringAndSize(value, &buf, &len) == -1) { in FillStringBufferFromPyString()
Dpython_utils.cc30 return PyBytes_AsStringAndSize(obj, data, length); in ConvertFromPyString()
/external/tensorflow/tensorflow/python/framework/
Dpython_op_gen_wrapper.cc28 if (PyBytes_AsStringAndSize(input.ptr(), &c_string, &py_size) == -1) { in PYBIND11_MODULE()
/external/python/cpython2/Include/
Dbytesobject.h26 #define PyBytes_AsStringAndSize PyString_AsStringAndSize macro
/external/python/cpython3/Include/
Dbytesobject.h54 PyAPI_FUNC(int) PyBytes_AsStringAndSize(
/external/protobuf/python/google/protobuf/pyext/
Ddescriptor_database.cc93 if (PyBytes_AsStringAndSize(serialized_pb.get(), &str, &len) < 0) { in GetFileDescriptorProto()
Dmessage_factory.cc50 : PyBytes_AsStringAndSize(ob, (charpp), (sizep)))
Ddescriptor_pool.cc56 : PyBytes_AsStringAndSize(ob, (charpp), (sizep)))
585 if (PyBytes_AsStringAndSize(serialized_pb, &message_type, &message_len) < 0) { in AddSerializedFile()
Dextension_dict.cc59 : PyBytes_AsStringAndSize(ob, (charpp), (sizep)))
Dmap_container.cc118 if (PyBytes_AsStringAndSize(py_string, &value, &value_len) < 0) { in PyStringToSTL()
Ddescriptor_containers.cc72 : PyBytes_AsStringAndSize(ob, (charpp), (sizep)))
Dmessage.cc93 : PyBytes_AsStringAndSize(ob, (charpp), (sizep)))
783 if (PyBytes_AsStringAndSize(encoded_string.get(), &value, &value_len) < 0) { in CheckAndSetString()
/external/python/cpython3/Modules/
Dspwdmodule.c148 if (PyBytes_AsStringAndSize(bytes, &name, NULL) == -1) in spwd_getspnam_impl()
Dpwdmodule.c225 if (PyBytes_AsStringAndSize(bytes, &name_chars, NULL) == -1) in pwd_getpwnam_impl()
Dgrpmodule.c201 if (PyBytes_AsStringAndSize(bytes, &name_chars, NULL) == -1) in grp_getgrnam_impl()
Dnismodule.c206 if (PyBytes_AsStringAndSize(bkey, &key, &keylen) == -1) { in nis_match()
D_cursesmodule.c380 if (PyBytes_AsStringAndSize(*bytes, &str, NULL) < 0) { in PyCurses_ConvertToString()
390 if (PyBytes_AsStringAndSize(*bytes, &str, NULL) < 0) { in PyCurses_ConvertToString()
/external/tensorflow/tensorflow/python/lib/core/
Dndarray_tensor.cc214 if (PyBytes_AsStringAndSize(obj, &buf, len) != 0) { in PyObjectToString()
226 if (utemp != nullptr && PyBytes_AsStringAndSize(utemp, &buf, len) != -1) { in PyObjectToString()
/external/python/cpython3/Doc/c-api/
Dbytes.rst157 .. c:function:: int PyBytes_AsStringAndSize(PyObject *obj, char **buffer, Py_ssize_t *length)
170 *obj* is not a bytes object at all, :c:func:`PyBytes_AsStringAndSize`
/external/python/cpython3/Doc/data/
Drefcounts.dat113 PyBytes_AsStringAndSize:int:::
114 PyBytes_AsStringAndSize:PyObject*:obj:0:
115 PyBytes_AsStringAndSize:char**:buffer::
116 PyBytes_AsStringAndSize:Py_ssize_t*:length::
Dstable_abi.dat23 function,PyBytes_AsStringAndSize,3.2,
/external/python/cpython3/Doc/faq/
Dextending.rst88 :c:func:`PyBytes_AsStringAndSize` provides a pointer to its value and its
/external/python/cpython3/PC/
Dpython3dll.c109 EXPORT_FUNC(PyBytes_AsStringAndSize)
/external/python/pybind11/include/pybind11/detail/
Dcommon.h173 #define PYBIND11_BYTES_AS_STRING_AND_SIZE PyBytes_AsStringAndSize
/external/python/cpython3/Python/
Dpystate.c1822 if (PyBytes_AsStringAndSize(obj, &shared->bytes, &shared->len) < 0) { in _bytes_shared()

12