MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / BTR_complement_key

Function BTR_complement_key

src/jrd/btr.cpp:845–863  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

843
844
845void BTR_complement_key(temporary_key* key)
846{
847/**************************************
848 *
849 * B T R _ c o m p l e m e n t _ k e y
850 *
851 **************************************
852 *
853 * Functional description
854 * Negate a key for descending index.
855 *
856 **************************************/
857 do
858 {
859 UCHAR* p = key->key_data;
860 for (const UCHAR* const end = p + key->key_length; p < end; p++)
861 *p ^= -1;
862 } while (key = key->key_next.get());
863}
864
865
866void BTR_create(thread_db* tdbb,

Callers 4

check_partner_indexFunction · 0.85
composeMethod · 0.85
BTR_make_keyFunction · 0.85
BTR_make_null_keyFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected