| 12 | uint32_t const MaxKey = 100000; |
| 13 | |
| 14 | ByteArray toByteArray(uint32_t k) { |
| 15 | k = toBigEndian(k); |
| 16 | return ByteArray((char*)(&k), sizeof(k)); |
| 17 | } |
| 18 | |
| 19 | ByteArray genBlock(uint32_t k) { |
| 20 | // Make sure not empty, because we test for existence with empty() |