Convert a hugeint object to a uuid style string.
130940 {
130941 auto byte_to_hex = [](
uint64_t byte_val,
char *buf,
idx_t &pos) {
130942 D_ASSERT(byte_val <= 0xFF);
130943 static char const HEX_DIGITS[] = "0123456789abcdef";
130944 buf[pos++] = HEX_DIGITS[(byte_val >> 4) & 0xf];
130945 buf[pos++] = HEX_DIGITS[byte_val & 0xf];
130946 };
130947
130948
130951 byte_to_hex(upper >> 56 & 0xFF, buf, pos);
130952 byte_to_hex(upper >> 48 & 0xFF, buf, pos);
130953 byte_to_hex(upper >> 40 & 0xFF, buf, pos);
130954 byte_to_hex(upper >> 32 & 0xFF, buf, pos);
130955 buf[pos++] = '-';
130956 byte_to_hex(upper >> 24 & 0xFF, buf, pos);
130957 byte_to_hex(upper >> 16 & 0xFF, buf, pos);
130958 buf[pos++] = '-';
130959 byte_to_hex(upper >> 8 & 0xFF, buf, pos);
130960 byte_to_hex(upper & 0xFF, buf, pos);
130961 buf[pos++] = '-';
130962 byte_to_hex(input.lower >> 56 & 0xFF, buf, pos);
130963 byte_to_hex(input.lower >> 48 & 0xFF, buf, pos);
130964 buf[pos++] = '-';
130965 byte_to_hex(input.lower >> 40 & 0xFF, buf, pos);
130966 byte_to_hex(input.lower >> 32 & 0xFF, buf, pos);
130967 byte_to_hex(input.lower >> 24 & 0xFF, buf, pos);
130968 byte_to_hex(input.lower >> 16 & 0xFF, buf, pos);
130969 byte_to_hex(input.lower >> 8 & 0xFF, buf, pos);
130970 byte_to_hex(input.lower & 0xFF, buf, pos);
130971}