pickle bitarrays

This commit is contained in:
Christopher Lackner 2020-05-07 10:03:00 +02:00
parent 9af476c353
commit 45a4b2c913

View File

@ -30,6 +30,7 @@ PYBIND11_MODULE(pyngcore, m) // NOLINT
if (a[i]) ba->SetBit(i);
return ba;
} ), py::arg("vec"))
.def(NGSPickle<BitArray>())
.def("__str__", &ToString<BitArray>)
.def("__len__", &BitArray::Size)
.def("__getitem__", [] (BitArray & self, int i)