std::basic_filebuf::sync
提供: cppreference.com
< cpp | io | basic filebuf
|
|
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
| protected: virtual int sync() |
||
put領域が存在する場合(ファイルを書き込み用にオープンされたなど)、
overflow()ファイルへのすべての保留中の出力を書き込むために呼び出し.Original:
If a put area exists (e.g. the file was opened for writing), calls
overflow() to write all pending output to the file.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
get領域が存在する場合(例えば、ファイルを読み込み用にオープンされました)、その効果は実装定義である。典型的な実装では、get領域を空にするとバイトの対応する数で戻って現在のファイルの位置を移動させてもよい.
Original:
If a get area exists (e.g. the file was opened for reading), the effect is implementation-defined. Typical implementation may empty out the get area and move the current file position back by the corresponding number of bytes.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
目次 |
[編集] パラメータ
(なし)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[編集] 値を返します
成功した場合の0、障害が発生した場合に-1.
Original:
0 in case of success, -1 in case of failure.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[編集] ノート
sync()またはそれと同等のものは、暗黙的にclose()、seekoff()、そしてseekpos()と明示std::basic_streambuf::pubsyncによって呼び出さによって呼び出されますOriginal:
sync() or its equivalent is implicitly called by close(), seekoff(), and seekpos() and explicitly called by std::basic_streambuf::pubsyncThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[編集] 例
| This section is incomplete Reason: no example |
[編集] も参照してください
| sync()を呼び出します Original: invokes sync() The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数of std::basic_streambuf)
| |
| 実際のファイルで出力ストリームを同期させます Original: synchronizes an output stream with the actual file The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数) |

