78 auto marshalled = std::make_unique<Bytef[]>(
len);
80 int ret = uncompress(marshalled.get(), &unzlen,
code,
zlen);
82 std::cerr <<
"Could not uncompress code: " << zError(ret) << std::endl;
85 assert(unzlen == (uLongf)
len);
87 auto marshal = py::module_::import(
"marshal");
88 return marshal.attr(
"loads")(py::bytes((
char*)marshalled.get(),
len));