| 22 | const Encoding encoding(Encoding::KIND_UNALIGNED_CDR); |
| 23 | |
| 24 | void print_hex(void* d) |
| 25 | { |
| 26 | unsigned char* a = (unsigned char*) d; |
| 27 | printf("0x"); |
| 28 | for (int j = 0; j < 16; j++){ |
| 29 | printf("%02x", a[j]); |
| 30 | } |
| 31 | printf("\n"); |
| 32 | } |
| 33 | |
| 34 | template<typename Type> |
| 35 | void key_hash_test(const Type& value, SerializedSizeBound expected_bound = SerializedSizeBound()) |