- int find_key(uint64_t key) const;
- void read_entry(BookEntry& entry, int n) const;
+ Book& operator>>(uint64_t& n) { n = read_integer(8); return *this; }
+ Book& operator>>(uint16_t& n) { n = (uint16_t)read_integer(2); return *this; }
+ void operator>>(BookEntry& e) { *this >> e.key >> e.move >> e.count >> e.n >> e.sum; }
+
+ uint64_t read_integer(int size);
+ void read_entry(BookEntry& e, int n);
+ int find_key(uint64_t key);