MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / close

Method close

src/Core/src/FileStream.cpp:120–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118 }
119
120 void FileStream::close()
121 {
122 if (_file == nullptr)
123 {
124 return;
125 }
126 _mode = StreamMode::none;
127 _length = 0;
128 _offset = 0;
129
130 fileClose(_file);
131 _file = nullptr;
132 }
133
134 StreamMode FileStream::getMode() const noexcept
135 {

Callers 2

loadFromFileMethod · 0.45
TESTFunction · 0.45

Calls 1

fileCloseFunction · 0.85

Tested by 1

TESTFunction · 0.36