MCPcopy Create free account
hub / github.com/assaultcube/AC / cmpb

Function cmpb

source/src/tools.cpp:433–439  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

431///////////////////////// misc tools ///////////////////////
432
433bool cmpb(void *b, int n, enet_uint32 c)
434{
435 ENetBuffer buf;
436 buf.data = b;
437 buf.dataLength = n;
438 return enet_crc32(&buf, 1)==c;
439}
440
441bool cmpf(char *fn, enet_uint32 c)
442{

Callers 1

cmpfFunction · 0.85

Calls 1

enet_crc32Function · 0.85

Tested by

no test coverage detected