MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Flush

Method Flush

Source/Engine/Serialization/FileWriteStream.cpp:40–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40void FileWriteStream::Flush()
41{
42 // Check if need to flush
43 if (_virtualPosInBuffer > 0)
44 {
45 // Update buffer
46 uint32 bytesWritten;
47 _hasError |= _file->Write(_buffer, _virtualPosInBuffer, &bytesWritten) != 0;
48 _virtualPosInBuffer = 0;
49 }
50}
51
52void FileWriteStream::Close()
53{

Callers

nothing calls this directly

Calls 1

WriteMethod · 0.45

Tested by

no test coverage detected