std::basic_filebuf::underflow
来自cppreference.com
< cpp | io | basic filebuf
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
protected: virtual int_type underflow() |
||
的行为就像的基类std::basic_streambuf::underflow,除了读取的数据从相关联的字符序列(文件)到“获取”区域,首先从文件中读出字节到一个临时缓冲区(分配达到必需的大小),然后使用std::codecvt::in充满语言环境外部(通常情况下,多字节)表示转换为内部形式,然后用填充取回区。语言环境的std::codecvt::always_noconv回报true转换可能会被跳过
原文:
Behaves like the base class std::basic_streambuf::underflow, except that to read the data from the associated character sequence (the file) into the get area, first reads the bytes from the file into a temporary buffer (allocated as large as necessary), then uses std::codecvt::in of the imbued locale to convert the external (typically, multibyte) representation to the internal form which is then used to populate the get area. The conversion may be skipped if the locale's std::codecvt::always_noconv returns true
目录 |
[编辑] 参数
(无)
[编辑] 返回值
Traits::to_int_type(*gptr())(挂起的序列的第一个字符)的情况下,成功失败的情况下,或Traits::eof().
原文:
Traits::to_int_type(*gptr()) (the first character of the pending sequence) in case of success, or Traits::eof() in case of failure.
[编辑] 示例
本章尚未完成 原因:暂无示例 |
[编辑] 另请参阅
[虚]</div></div>
|
相关的输入序列读取字符的get区 原文: reads characters from the associated input sequence to the get area (虚拟保护成员函数of std::basic_streambuf )
|
[虚]</div></div>
|
在get区读取相关文件和进步的下一个指针 原文: reads from the associated file and advances the next pointer in the get area (虚拟保护成员函数) |
[虚]</div></div>
|
认沽区相关的文件中写入字符 原文: writes characters to the associated file from the put area (虚拟保护成员函数) |