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

Method AddDataString

src/engine/shared/datafile.cpp:1123–1132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1121}
1122
1123int CDataFileWriter::AddDataString(const char *pStr)
1124{
1125 dbg_assert(pStr != nullptr, "Data missing");
1126
1127 if(pStr[0] == '\0')
1128 {
1129 return -1;
1130 }
1131 return AddData(str_length(pStr) + 1, pStr);
1132}
1133
1134static int CompressionLevelToZlib(CDataFileWriter::ECompressionLevel CompressionLevel)
1135{

Callers 2

SaveMethod · 0.80
TESTFunction · 0.80

Calls 1

str_lengthFunction · 0.85

Tested by 1

TESTFunction · 0.64