src/test/dbwrapper_tests.cpp
bool is_null_key(const vector<unsigned char>& key) {
    bool isnull = true;

    for (unsigned int i = 0; i < key.size(); i++)
        isnull &= (key[i] == '\x00');

    return isnull;
}
// Test if a string consists entirely of null characters
Test if a string consists entirely of null characters
Test if a string consists entirely of null characters
bool is_null_key(const vector<unsigned char>& key) {
    bool isnull = true;
    for (unsigned int i = 0; i < key.size(); i++)
        isnull &= (key[i] == '\x00');
    return isnull;
}
bool is_null_key ( const vector < unsigned char > & key ) { bool isnull = true ; for ( unsigned int i = 0 ; i < key . size ( ) ; i ++ ) isnull &= ( key [ i ] == ' \x00 ' ) ; return isnull ; }
Test if a string consists entirely of null characters
Test if a string consists entirely of null characters