|
errno_t | Open (const char *filename, int flags, int mode) noexcept |
| ファイルを書き込み用でオープンします。 [詳解]
|
|
errno_t | Open (const char *filename, int flags) noexcept |
| 上記関数の引数省略版です。 mode に0644 を代入しています。
|
|
errno_t | Open (const char *filename) noexcept |
| 上記関数の引数省略版です。 flags にNLIB_FD_O_WRONLY | NLIB_FD_O_CREAT | NLIB_FD_O_TRUNC を代入しています。
|
|
errno_t | Open (const wchar_t *filename, int flags, int mode) noexcept |
| ファイルを書き込み用でオープンします。 [詳解]
|
|
errno_t | Open (const wchar_t *filename, int flags) noexcept |
| 上記関数の引数省略版です。 mode に0644 を代入しています。
|
|
errno_t | Open (const wchar_t *filename) noexcept |
| 上記関数の引数省略版です。 flags にNLIB_FD_O_WRONLY | NLIB_FD_O_CREAT | NLIB_FD_O_TRUNC を代入しています。
|
|
errno_t | FdOpen (nlib_fd fd) noexcept |
| 既にオープンされたファイルでFileOutputStreamを利用できるようにします。 [詳解]
|
|
nlib_fd | GetFd () const noexcept |
| ファイルディスクリプタを返します。 [詳解]
|
|
|
constexpr | FileOutputStream () noexcept |
| デフォルトコンストラクタです。実行後Init() による初期化を必要とします。
|
|
virtual | ~FileOutputStream () noexcept final override |
| デストラクタです。 ファイルが開いている場合は閉じます。
|
|
errno_t | Init (const FileOutputStreamSettings &settings) noexcept |
| 動作オプションを指定して初期化を行います。成功した場合は0を返します。 [詳解]
|
|
errno_t | Init () noexcept |
| 上記関数の引数省略版で、settings をデフォルト値で渡します。
|
|
size_t | Pos () const noexcept |
| ストリーム上の現在位置を返します。 [詳解]
|
|
uint64_t | Pos64 () const noexcept |
| ストリーム上の現在位置を64bit整数で返します。 [詳解]
|
|
bool | Write (int b) noexcept |
| ストリームに1バイトのデータを書き込みます。 [詳解]
|
|
bool | Write (const void *p, size_t n) noexcept |
| ストリームにn バイトのデータを書き込みます。 [詳解]
|
|
bool | WriteGather (const nlib_fd_iovec *iov, int iovcnt) noexcept |
| 複数の非連続のバッファからデータをストリームに書き出します。 [詳解]
|
|
bool | Flush () noexcept |
| ストリームをフラッシュします。 [詳解]
|
|
bool | Close () noexcept |
| ストリームをフラッシュした後、ストリームを閉じます。成功した場合にはtrue を返します。 [詳解]
|
|
errno_t | GetErrorValue () const noexcept |
| エラー値を取得します。 [詳解]
|
|
BufferingMode | GetBufferingMode () const noexcept |
| バッファリングモードを取得します。
|
|
| operator bool () const |
| オブジェクトが初期化済みで内部でエラーが発生していなければtrue 、発生していればfalse を返します。
|
|
constexpr | OutputStream () noexcept |
| デフォルトコンストラクタです。
|
|
virtual | ~OutputStream () noexcept |
| デストラクタです。
|
|
ファイルの出力ストリームです。
- 説明
- 同期・シーケンシャルなアクセスのみをサポートします。 各環境のファイルAPIをラップしたクラスで、自らのバッファを持っています。
- オブジェクトの状態遷移
- オブジェクトの状態遷移の概略は以下のとおりです。
FileOutputStream.h の 34 行目に定義があります。