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

Function PyBytes_AsStdString

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

Source from the content-addressed store, hash-verified

97namespace internal {
98
99std::string PyBytes_AsStdString(PyObject* obj) {
100 ARROW_DCHECK(PyBytes_Check(obj));
101 return std::string(PyBytes_AS_STRING(obj), PyBytes_GET_SIZE(obj));
102}
103
104Status PyUnicode_AsStdString(PyObject* obj, std::string* out) {
105 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