src/backend/librw/slice.cc
char toHex(unsigned char v)
{
    if (v <= 9)
    {
        return '0' + v;
    }
    return 'A' + v - 10;
}
// 2 small internal utility functions, for efficient hex conversions
// and no need for snprintf, toupper etc...
// Originally from wdt/util/EncryptionUtils.cpp - for ToString(true)/DecodeHex:
2 small internal utility functions, for efficient hex conversions
and no need for snprintf, toupper etc
Originally from wdt/util/EncryptionUtils.cpp - for ToString(true)/DecodeHex.
2 small internal utility functions for efficient hex conversions and no need for snprintf toupper etc Originally from wdt / util / EncryptionUtils . cpp - for ToString ( true ) / DecodeHex .
char toHex(unsigned char v)
{
    if (v <= 9)
    {
        return '0' + v;
    }
    return 'A' + v - 10;
}
char toHex ( unsigned char v ) { if ( v <= 9 ) { return ' ' + v ; } return ' ' + v - 10 ; }
2 small internal utility functions, for efficient hex conversions
and no need for snprintf, toupper etc...
2 small internal utility functions for efficient hex conversions and no need for snprintf toupper etc ...