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

Method ReadFile

source/common/filesystem/source/filesystem.cpp:1229–1240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1227//==========================================================================
1228
1229void FileSystem::ReadFile (int lump, void *dest)
1230{
1231 auto lumpr = OpenFileReader (lump);
1232 auto size = lumpr.GetLength ();
1233 auto numread = lumpr.Read (dest, size);
1234
1235 if (numread != size)
1236 {
1237 throw FileSystemException("W_ReadFile: only read %td of %td on '%s'\n",
1238 numread, size, FileInfo[lump].LongName);
1239 }
1240}
1241
1242
1243//==========================================================================

Callers 15

LoadSoundFunction · 0.45
S_AddBloodSFXFunction · 0.45
loadPaletteMethod · 0.45
FHereticStartScreenMethod · 0.45
FEndoomScreenMethod · 0.45
GetStringFromLumpFunction · 0.45
V_GetColorStringByNameFunction · 0.45
ReadPaletteFunction · 0.45
LoadStringsMethod · 0.45
OpenLumpNumMethod · 0.45
SetupGenMidiFunction · 0.45
SetupWgOpnFunction · 0.45

Calls 4

FileSystemExceptionClass · 0.85
GetLengthMethod · 0.45
ReadMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected