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

Method endswith

source/src/master.cpp:138–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136 }
137
138 bool endswith(const messagebuf &m) const
139 {
140 return buf.length() >= m.buf.length() && !memcmp(&buf[buf.length() - m.buf.length()], m.buf.getbuf(), m.buf.length());
141 }
142
143 void concat(const messagebuf &m)
144 {

Callers 1

loopvFunction · 0.80

Calls 2

lengthMethod · 0.45
getbufMethod · 0.45

Tested by

no test coverage detected