nlib
|
ファイルの出力ストリームです。 [詳解]
#include "nn/nlib/FileOutputStream.h"
公開メンバ関数 | |
errno_t | Init () noexcept |
ストリームをデフォルトの設定で初期化します。 [詳解] | |
NLIB_CHECK_RESULT errno_t | Init (const FileOutputStreamSettings &settings) noexcept |
ストリームを初期化します。 [詳解] | |
NLIB_CHECK_RESULT errno_t | Open (const char *filename) noexcept |
ファイルを書き込み専用でオープンします。ファイルが存在しない場合は作成します。 [詳解] | |
NLIB_CHECK_RESULT errno_t | Open (const wchar_t *filename) noexcept |
ファイルを書き込み専用でオープンします。ファイルが存在しない場合は作成します。 [詳解] | |
NLIB_CHECK_RESULT errno_t | FdOpen (nlib_fd fd) noexcept |
既にオープンされたファイルでFileOutputStreamを利用できるようにします。 [詳解] | |
nlib_fd | GetFd () const noexcept |
ファイルディスクリプタを返します。 [詳解] | |
基本的なメンバ関数 | |
FileOutputStream () noexcept | |
デフォルトコンストラクタです。更にInit() でバッファを設定して初期化する必要があります。 | |
virtual | ~FileOutputStream () noexcept final override |
デストラクタです。ファイルが開いている場合は閉じます。 | |
![]() | |
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 |
エラー値を取得します。 [詳解] | |
bool | IsOk () const noexcept |
エラーが発生していないかどうかを調べます。 [詳解] | |
BufferingMode | GetBufferingMode () const noexcept |
バッファリングモードを取得します。 | |
operator bool () const | |
内部でエラーが発生していなければtrue を返します。 | |
constexpr | OutputStream () noexcept |
デフォルトコンストラクタです。 | |
virtual | ~OutputStream () noexcept |
デストラクタです。何もしません。 | |
その他の継承メンバ | |
![]() | |
enum | BufferingMode { BUFFERINGMODE_BLOCKBUFFERED = 0, BUFFERINGMODE_LINEBUFFERED, BUFFERINGMODE_UNBUFFERED } |
OutputStream のバッファリングモードです。 [詳解] | |
![]() | |
void | ResetBuffer (void *p, size_t nBytes) noexcept |
OutputStream が持つバッファを設定します。 [詳解] | |
void | SetError (errno_t e) const noexcept |
OutputStream にエラーを設定します。 [詳解] | |
![]() | |
BufferingMode | m_BufferingMode |
バッファリングモードが格納されています。 [詳解] | |
ファイルの出力ストリームです。
FileOutputStream.h の 21 行目に定義があります。
|
noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
ストリームをデフォルトの設定で初期化します。
FileOutputStream
オブジェクトは内部でバッファを利用しますが、そのバッファをデフォルトサイズでヒープから確保します。 FileOutputStream.h の 28 行目に定義があります。
|
noexcept |
ストリームを初期化します。
[in] | settings | 初期化オプション |
|
noexcept |
|
noexcept |
© 2013, 2014, 2015 Nintendo Co., Ltd. All rights reserved.