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

Method equals

source/src/master.cpp:133–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131 void purge();
132
133 bool equals(const messagebuf &m) const
134 {
135 return buf.length() == m.buf.length() && !memcmp(buf.getbuf(), m.buf.getbuf(), buf.length());
136 }
137
138 bool endswith(const messagebuf &m) const
139 {

Callers 1

gengbanlistFunction · 0.80

Calls 2

lengthMethod · 0.45
getbufMethod · 0.45

Tested by

no test coverage detected