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

Method write

source/core/StarFile.cpp:168–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166}
167
168size_t File::write(const char* data, size_t len) {
169 if (!m_file)
170 throw IOException("write called on closed File");
171
172 if (!isWritable())
173 throw IOException("write called on non-writable File");
174
175 return fwrite(m_file, data, len);
176}
177
178size_t File::readAbsolute(StreamOffset readPosition, char* data, size_t len) {
179 return pread(m_file, data, len, readPosition);

Callers 15

openMethod · 0.45
storeLeafMethod · 0.45
writeRootMethod · 0.45
writeValueMethod · 0.45
writeDataMethod · 0.45
netStoreMethod · 0.45
writeNetDeltaMethod · 0.45
writeChangeMethod · 0.45
StarAssetPath.cppFile · 0.45
writeDataMethod · 0.45
serializeMethod · 0.45

Calls

no outgoing calls

Tested by 1

OutputXmlCDataSectionMethod · 0.36