MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / readMemory

Method readMemory

Engine/source/core/fileObject.cpp:128–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128bool FileObject::readMemory(const char *fileName)
129{
130 char buffer[1024];
131 Con::expandScriptFilename( buffer, sizeof( buffer ), fileName );
132
133 close();
134
135 void *data = NULL;
136 U32 dataSize = 0;
137 Torque::FS::ReadFile(buffer, data, dataSize, true);
138 if(data == NULL)
139 return false;
140
141 mBufferSize = dataSize;
142 mFileBuffer = (U8 *)data;
143 mCurPos = 0;
144
145 return true;
146}
147
148const U8 *FileObject::readLine()
149{

Callers 6

saveMethod · 0.80
readColladaFileMethod · 0.80
lang.cppFile · 0.80
fileObject.cppFile · 0.80
loadSISFileMethod · 0.80

Calls 2

expandScriptFilenameFunction · 0.85
ReadFileFunction · 0.70

Tested by

no test coverage detected