std::basic_streambuf::pubsync, std::basic_streambuf::sync
|
|
Эта страница была переведена автоматически с английской версии вики используя Переводчик Google. Перевод может содержать ошибки и странные формулировки. Наведите курсор на текст, чтобы увидеть оригинал. Щёлкните здесь, чтобы увидеть английскую версию этой страницы. (Вы можете помочь в исправлении ошибок и улучшении перевода. Для инструкций перейдите по ссылке.) |
<metanoindex/>
<tbody> </tbody> int pubsync(); |
(1) | |
protected: virtual int sync(); |
(2) | |
Synchronizes the controlled character sequence (the buffers) with the associated character sequence.
1)
sync() из самых производного классаsync() of the most derived classВы можете проверить и исправить перевод. Для инструкций щёлкните сюда.
2) The base class version of this function has no effect. The derived classes may override this function to allow synchronizing the underlying device with the buffers.
For output streams, this typically results in writing the contents of the put area into the associated sequence, i.e. flushing of the output buffer. For input streams, this typically empties the get area and forces a re-read from the associated sequence to pick up recent changes. The default behavior (found, for example, in std::basic_stringbuf), is to do nothing.
Параметры
(Нет)
Возвращаемое значение
1) The return value of sync().
2) Returns 0 on success, -1 otherwise. The base class version returns 0.
Пример
| Этот раздел не завершён Причина: нет примера |
См. также
синхронизируется с основным устройством хранения Оригинал: synchronizes with the underlying storage device Текст был переведён автоматически используя Переводчик Google. Вы можете проверить и исправить перевод. Для инструкций щёлкните сюда. (public функция-элемент std::basic_istream)
| |
[virtual] |
пишет символов связанных файлов из поставленных области Оригинал: writes characters to the associated file from the put area Текст был переведён автоматически используя Переводчик Google. Вы можете проверить и исправить перевод. Для инструкций щёлкните сюда. (virtual protected std::basic_filebuf функция-элемент)
|