MCPcopy Create free account
hub / github.com/ddnet/ddnet / CompressionLevelToZlib

Function CompressionLevelToZlib

src/engine/shared/datafile.cpp:1134–1145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1132}
1133
1134static int CompressionLevelToZlib(CDataFileWriter::ECompressionLevel CompressionLevel)
1135{
1136 switch(CompressionLevel)
1137 {
1138 case CDataFileWriter::COMPRESSION_DEFAULT:
1139 return Z_DEFAULT_COMPRESSION;
1140 case CDataFileWriter::COMPRESSION_BEST:
1141 return Z_BEST_COMPRESSION;
1142 default:
1143 dbg_assert_failed("Invalid CompressionLevel: %d", static_cast<int>(CompressionLevel));
1144 }
1145}
1146
1147void CDataFileWriter::Finish()
1148{

Callers 1

FinishMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected