// Templated method implementations for cdpf.hpp // I/O for CDPFs // Read the DPF from the output stream. You can use this to read DPFs // from files or from the network. template T& operator>>(T &is, CDPF &cdpf) { is.read((char *)&cdpf.seed, sizeof(cdpf.seed)); cdpf.whichhalf = get_lsb(cdpf.seed); uint8_t depth = VALUE_BITS - 7; cdpf.cw.clear(); for (uint8_t i=0; i T& operator<<(T &os, const CDPF &cdpf) { os.write((const char *)&cdpf.seed, sizeof(cdpf.seed)); uint8_t depth = VALUE_BITS - 7; for (uint8_t i=0; i