MCPcopy Create free account
hub / github.com/apache/trafficserver / prev_CacheKey

Function prev_CacheKey

src/iocore/cache/P_CacheInternal.h:397–403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395
396extern const uint8_t CacheKey_prev_table[256];
397void inline prev_CacheKey(CacheKey *prev, const CacheKey *key)
398{
399 for (int i = 15; i > 0; i--) {
400 prev->u8[i] = 256 + CacheKey_prev_table[key->u8[i]] - key->u8[i - 1];
401 }
402 prev->u8[0] = CacheKey_prev_table[key->u8[0]];
403}
404
405inline unsigned int
406next_rand(unsigned int *p)

Callers 2

openReadMainMethod · 0.85
update_document_keyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected