MCPcopy Create free account
hub / github.com/beefytech/Beef / Add

Method Add

BeefySysLib/util/ZipFile.cpp:85–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85bool ZipFile::Add(const StringImpl& fileName, Span<uint8> data)
86{
87 if (mData == NULL)
88 return false;
89
90 if (!mz_zip_writer_add_mem(&mData->mZip, fileName.c_str(), data.mVals, data.mSize, MZ_NO_COMPRESSION))
91 return false;
92
93 return true;
94}
95
96
97bool ZipFile::Get(const StringImpl& fileName, Array<uint8>& data)

Callers 13

ToWStringMethod · 0.45
ModelDef_SetTexturesFunction · 0.45
GenerateCollisionDataMethod · 0.45
ReadFileMethod · 0.45
LoadModelPropsMethod · 0.45
ReadFileMethod · 0.45
ReplaceLargerHelperMethod · 0.45
AddJobMethod · 0.45
SlowGetCurThreadInfoMethod · 0.45
AllocMethod · 0.45
FreeMethod · 0.45
ValidateMethod · 0.45

Calls 1

c_strMethod · 0.45

Tested by

no test coverage detected