MCPcopy Create free account
hub / github.com/davisking/dlib / load

Method load

dlib/external/pybind11/include/pybind11/cast.h:645–654  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

643
644public:
645 bool load(handle src, bool convert) {
646 if (!isinstance<sequence>(src)) {
647 return false;
648 }
649 const auto seq = reinterpret_borrow<sequence>(src);
650 if (seq.size() != size) {
651 return false;
652 }
653 return load_impl(seq, convert, indices{});
654 }
655
656 template <typename T>
657 static handle cast(T &&src, return_value_policy policy, handle parent) {

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected