MCPcopy Create free account
hub / github.com/ceph/ceph / py_bytes_from_vec

Function py_bytes_from_vec

src/mgr/PyModule.cc:194–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192}
193
194PyObject *py_bytes_from_vec(const std::vector<std::byte> &s)
195{
196 auto ret = PyBytes_FromStringAndSize(
197 reinterpret_cast<const char *>(s.data()), s.size());
198 assert(ret);
199 return ret;
200}
201
202
203namespace {

Callers 1

ceph_dispatch_remoteFunction · 0.85

Calls 3

assertFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected