MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / read

Method read

source/core/StarFile.cpp:158–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158size_t File::read(char* data, size_t len) {
159 if (!m_file)
160 throw IOException("read called on closed File");
161
162 if (!isReadable())
163 throw IOException("read called on non-readable File");
164
165 return fread(m_file, data, len);
166}
167
168size_t File::write(const char* data, size_t len) {
169 if (!m_file)

Callers 15

getAudioDataMethod · 0.45
mainFunction · 0.45
readRootMethod · 0.45
readValueMethod · 0.45
readDataMethod · 0.45
copyMethod · 0.45
readFileMethod · 0.45
readFileStringMethod · 0.45
readChangeMethod · 0.45
StarAssetPath.cppFile · 0.45
readDataMethod · 0.45
deserializeMethod · 0.45

Calls

no outgoing calls

Tested by 1

WaitMethod · 0.36