MCPcopy Create free account
hub / github.com/couchbase/forestdb / _cmp_variable

Function _cmp_variable

tests/functional/fdb_functional_test.cc:2355–2359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2353}
2354
2355static int _cmp_variable(void *key1, size_t keylen1, void *key2, size_t keylen2)
2356{
2357 // compare only 3rd~8th bytes (ignore the others)
2358 return memcmp((uint8_t*)key1+2, (uint8_t*)key2+2, 6);
2359}
2360
2361void custom_compare_variable_test()
2362{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected