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

Method resize

source/core/StarFile.cpp:203–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203void File::resize(StreamOffset s) {
204 bool tempOpen = false;
205 if (!isOpen()) {
206 tempOpen = true;
207 open(mode());
208 }
209
210 File::resize(m_file, s);
211
212 if (tempOpen)
213 close();
214}
215
216void File::sync() {
217 if (!m_file)

Callers 15

resampleMethod · 0.45
mixMethod · 0.45
receiveMethod · 0.45
threadMethod · 0.45
addMessagesMethod · 0.45
addHistoryMethod · 0.45
base64EncodeFunction · 0.45
base64DecodeFunction · 0.45
checkCapacityMethod · 0.45
sha256Function · 0.45
openMethod · 0.45
rollbackMethod · 0.45

Calls

no outgoing calls

Tested by 3

TESTFunction · 0.36
TESTFunction · 0.36
WaitMethod · 0.36