MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / chomp

Method chomp

launcher/translations/POTranslator.cpp:28–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 {
27 }
28 bool chomp(const char * data, int length)
29 {
30 if(startsWith(data))
31 {
32 remove(0, length);
33 return true;
34 }
35 return false;
36 }
37 bool chompString(QByteArray & appendHere)
38 {
39 QByteArray msg;

Callers 1

reloadMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected