| 61 | } |
| 62 | |
| 63 | bool TestStorageProvider::enumerate(callback fn) const |
| 64 | { |
| 65 | bool fAll = true; |
| 66 | for (auto &pair : m_map) |
| 67 | { |
| 68 | if (!fn(pair.first.data(), pair.first.size(), pair.second.data(), pair.second.size())) |
| 69 | { |
| 70 | fAll = false; |
| 71 | break; |
| 72 | } |
| 73 | } |
| 74 | return fAll; |
| 75 | } |
| 76 | |
| 77 | bool TestStorageProvider::enumerate_hashslot(callback fn, unsigned int hashslot) const |
| 78 | { |