#include "Stroika/Foundation/StroikaPreComp.h"
#include <filesystem>
#include "Stroika/Foundation/Characters/String.h"
#include "Stroika/Foundation/Execution/Synchronized.h"
#include "Stroika/Foundation/IO/FileSystem/FileStream.h"
#include "Stroika/Foundation/Streams/OutputStream.h"
#include "FileOutputStream.inl"
Go to the source code of this file.
Namespaces | |
namespace | Stroika::Foundation |
Typedefs | |
using | Stroika::Foundation::IO::FileSystem ::FileOutputStream::Ptr = Streams::OutputStream::Ptr< byte > |
Enumerations | |
enum class | Stroika::Foundation::IO::FileSystem ::FileOutputStream::FlushFlag |
enum class | Stroika::Foundation::IO::FileSystem ::FileOutputStream::AppendFlag |
Functions | |
Ptr | Stroika::Foundation::IO::FileSystem ::FileOutputStream::New (const filesystem::path &fileName, FlushFlag flushFlag=FlushFlag::eDEFAULT) |
TODO:
Definition in file FileOutputStream.h.
using Stroika::Foundation::IO::FileSystem ::FileOutputStream::Ptr = typedef Streams::OutputStream::Ptr<byte> |
very rough - going to need more stuff
Definition at line 30 of file FileOutputStream.h.
|
strong |
This flag is used to configure if BinaryOutputStream::Flush will invoke the OS fsync() function to force data to disk (by default Flush just forces the data out of this object to the next object, for files, the operating system).
Definition at line 40 of file FileOutputStream.h.
|
strong |
Default AppendFlag is eStartFromStart (truncation), not eAppend
Definition at line 54 of file FileOutputStream.h.
Ptr Stroika::Foundation::IO::FileSystem ::FileOutputStream::New | ( | const filesystem::path & | fileName, |
FlushFlag | flushFlag = FlushFlag::eDEFAULT |
||
) |
The constructor overload with FileDescriptorType does an 'attach' - taking ownership (and thus later closing) the argument file descriptor (depending on AdoptFDPolicy).