MCPcopy Create free account
hub / github.com/apache/arrow / PyBytes_AsStdString

Function PyBytes_AsStdString

python/pyarrow/src/arrow/python/helpers.cc:98–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96namespace internal {
97
98std::string PyBytes_AsStdString(PyObject* obj) {
99 ARROW_DCHECK(PyBytes_Check(obj));
100 return std::string(PyBytes_AS_STRING(obj), PyBytes_GET_SIZE(obj));
101}
102
103Status PyUnicode_AsStdString(PyObject* obj, std::string* out) {
104 ARROW_DCHECK(PyUnicode_Check(obj));

Callers 3

PyObject_StdStringReprFunction · 0.85
SerializeExtInstanceFunction · 0.85
VisitDictMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected