MCPcopy Create free account
hub / github.com/ZDoom/Raze / M_ZLibError

Function M_ZLibError

source/common/utility/cmdlib.cpp:999–1024  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

997//==========================================================================
998
999FString M_ZLibError(int zerr)
1000{
1001 if (zerr >= 0)
1002 {
1003 return "OK";
1004 }
1005 else if (zerr < -6)
1006 {
1007 FString out;
1008 out.Format("%d", zerr);
1009 return out;
1010 }
1011 else
1012 {
1013 static const char* errs[6] =
1014 {
1015 "Errno",
1016 "Stream Error",
1017 "Data Error",
1018 "Memory Error",
1019 "Buffer Error",
1020 "Version Error"
1021 };
1022 return errs[-zerr - 1];
1023 }
1024}
1025
1026void md5Update(FileReader& file, MD5Context& md5, unsigned len)
1027{

Callers 1

PacketGetFunction · 0.85

Calls 1

FormatMethod · 0.45

Tested by

no test coverage detected