|
errno_t | Open (const char *filename, int flags, int mode) noexcept |
| Opens the file in write mode. More...
|
|
errno_t | Open (const char *filename, int flags) noexcept |
| A parameter omitted version of the above function. Assigns 0644 to mode.
|
|
errno_t | Open (const char *filename) noexcept |
| A parameter omitted version of the above function. Assigns NLIB_FD_O_WRONLY | NLIB_FD_O_CREAT | NLIB_FD_O_TRUNC to flags.
|
|
errno_t | Open (const wchar_t *filename, int flags, int mode) noexcept |
| Opens the file in write mode. More...
|
|
errno_t | Open (const wchar_t *filename, int flags) noexcept |
| A parameter omitted version of the above function. Assigns 0644 to mode.
|
|
errno_t | Open (const wchar_t *filename) noexcept |
| A parameter omitted version of the above function. Assigns NLIB_FD_O_WRONLY | NLIB_FD_O_CREAT | NLIB_FD_O_TRUNC to flags.
|
|
errno_t | FdOpen (nlib_fd fd) noexcept |
| Makes an already-open file available for use by FileOutputStream . More...
|
|
nlib_fd | GetFd () const noexcept |
| Returns the file descriptor. More...
|
|
|
constexpr | FileOutputStream () noexcept |
| Instantiates the object with default parameters (default constructor). Requires initialization with Init() after execution.
|
|
virtual | ~FileOutputStream () noexcept final override |
| Destructor. Closes the file if it is open.
|
|
errno_t | Init (const FileOutputStreamSettings &settings) noexcept |
| Initializes by specifying the behavior option. Returns 0 if successful. More...
|
|
errno_t | Init () noexcept |
| A parameter omitted version of the above function which passes settings as the default value.
|
|
size_t | Pos () const noexcept |
| Returns the current position in the stream. More...
|
|
uint64_t | Pos64 () const noexcept |
| Returns the current position in the stream as a 64-bit integer. More...
|
|
bool | Write (int b) noexcept |
| Writes one byte of data to the stream. More...
|
|
bool | Write (const void *p, size_t n) noexcept |
| Writes n bytes of data to the stream. More...
|
|
bool | WriteGather (const nlib_fd_iovec *iov, int iovcnt) noexcept |
| Writes data from multiple non-continuous buffers to a stream. More...
|
|
bool | Flush () noexcept |
| Flushes the stream. More...
|
|
bool | Close () noexcept |
| Closes the stream after it has been flushed. Returns true if successful. More...
|
|
errno_t | GetErrorValue () const noexcept |
| Gets the error value. More...
|
|
BufferingMode | GetBufferingMode () const noexcept |
| Gets the buffering mode.
|
|
| operator bool () const |
| Returns true if the object has been initialized and an error has not occurred inside, or returns false if an error has occurred inside.
|
|
constexpr | OutputStream () noexcept |
| Instantiates the object with default parameters (default constructor).
|
|
virtual | ~OutputStream () noexcept |
| Destructor.
|
|
The class for file output streams.
- Description
- Supports only synchronous and sequential access. The class wraps the file API of each environment and has its own buffer.
- The transition of the object state.
- The overview of the object state transitions is described below:
Definition at line 34 of file FileOutputStream.h.