mirror of
https://github.com/thunderbrewhq/bc.git
synced 2025-12-12 01:52:30 +00:00
18 lines
No EOL
402 B
C++
18 lines
No EOL
402 B
C++
#include "bc/file/Flush.cpp"
|
|
#include "bc/system/file/Stacked.hpp"
|
|
|
|
namespace Blizzard {
|
|
namespace File {
|
|
|
|
// flush
|
|
bool Flush(StreamRecord* file) {
|
|
System_File::Stacked::FileParms parms;
|
|
parms.op = offsetof(Filesystem, flush);
|
|
parms.file = file;
|
|
|
|
auto fs = System_File::Stacked::s_manager;
|
|
return fs ? fs->flush(fs, &parms) : false;
|
|
}
|
|
|
|
} // namespace File
|
|
} // namespace Blizzard
|