Home
last modified time | relevance | path

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

123

/aosp_15_r20/external/tensorflow/tensorflow/lite/python/interpreter_wrapper/
H A Dnumpy.cc140 if (PyBytes_AsStringAndSize(utemp.get(), &buf, &len) == -1) { in FillStringBufferFromPyUnicode()
157 if (PyBytes_AsStringAndSize(value, &buf, &len) == -1) { in FillStringBufferFromPyString()
H A Dpython_utils.cc30 return PyBytes_AsStringAndSize(obj, data, length); in ConvertFromPyString()
/aosp_15_r20/external/tensorflow/tensorflow/python/framework/
H A Dpython_op_gen_wrapper.cc28 if (PyBytes_AsStringAndSize(input.ptr(), &c_string, &py_size) == -1) { in PYBIND11_MODULE()
/aosp_15_r20/external/python/cpython2/Include/
Dbytesobject.h26 #define PyBytes_AsStringAndSize PyString_AsStringAndSize macro
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/python3/include/python3.11/
Dbytesobject.h54 PyAPI_FUNC(int) PyBytes_AsStringAndSize(
/aosp_15_r20/external/python/cpython3/Include/
Dbytesobject.h54 PyAPI_FUNC(int) PyBytes_AsStringAndSize(
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/python3/include/python3.11/
Dbytesobject.h54 PyAPI_FUNC(int) PyBytes_AsStringAndSize(
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/python3/include/python3.11/
Dbytesobject.h54 PyAPI_FUNC(int) PyBytes_AsStringAndSize(
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/python3/include/python3.11/
Dbytesobject.h54 PyAPI_FUNC(int) PyBytes_AsStringAndSize(
/aosp_15_r20/external/tensorflow/tensorflow/python/lib/core/
H A Dndarray_tensor.cc214 if (PyBytes_AsStringAndSize(obj, &buf, len) != 0) { in PyObjectToString()
226 if (utemp != nullptr && PyBytes_AsStringAndSize(utemp, &buf, len) != -1) { in PyObjectToString()
/aosp_15_r20/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`
/aosp_15_r20/external/protobuf/python/google/protobuf/pyext/
H A Ddescriptor_pool.cc53 : PyBytes_AsStringAndSize(ob, (charpp), (sizep)))
597 if (PyBytes_AsStringAndSize(serialized_pb, &message_type, &message_len) < 0) { in AddSerializedFile()
H A Ddescriptor_database.cc95 if (PyBytes_AsStringAndSize(serialized_pb.get(), &str, &len) < 0) { in GetFileDescriptorProto()
H A Dmessage_factory.cc48 : PyBytes_AsStringAndSize(ob, (charpp), (sizep)))
H A Dextension_dict.cc58 : PyBytes_AsStringAndSize(ob, (charpp), (sizep)))
/aosp_15_r20/external/cronet/third_party/protobuf/python/google/protobuf/pyext/
H A Ddescriptor_pool.cc53 : PyBytes_AsStringAndSize(ob, (charpp), (sizep)))
597 if (PyBytes_AsStringAndSize(serialized_pb, &message_type, &message_len) < 0) { in AddSerializedFile()
H A Ddescriptor_database.cc95 if (PyBytes_AsStringAndSize(serialized_pb.get(), &str, &len) < 0) { in GetFileDescriptorProto()
H A Dmessage_factory.cc48 : PyBytes_AsStringAndSize(ob, (charpp), (sizep)))
H A Dextension_dict.cc58 : PyBytes_AsStringAndSize(ob, (charpp), (sizep)))
/aosp_15_r20/external/python/cpython3/Modules/
Dspwdmodule.c148 if (PyBytes_AsStringAndSize(bytes, &name, NULL) == -1) in spwd_getspnam_impl()
Dpwdmodule.c223 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.c207 if (PyBytes_AsStringAndSize(bkey, &key, &keylen) == -1) { in nis_match()
/aosp_15_r20/external/rust/android-crates-io/crates/grpcio-sys/grpc/third_party/upb/python/
Dmessage.c288 PyBytes_AsStringAndSize(py_name, (char**)&name, &size); in PyUpb_Message_LookupName()
1243 int err = PyBytes_AsStringAndSize(bytes, &buf, &size); in PyUpb_Message_MergeFromString()
1246 } else if (PyBytes_AsStringAndSize(arg, &buf, &size) < 0) { in PyUpb_Message_MergeFromString()
Dconvert.c253 if (PyBytes_AsStringAndSize(obj, &ptr, &size) < 0) return false; in PyUpb_PyToUpb()

123