std::basic_filebuf::overflow

来自cppreference.com
< cpp‎ | io‎ | basic filebuf

 
 
 
std::basic_filebuf
公共成员函数
原文:
Public member functions
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里
受保护的成员函数
原文:
Protected member functions
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里
basic_filebuf::overflow
非成员函数
原文:
Non-member functions
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里
 
protected:
virtual int_type overflow ( int_type c = Traits::eof() );
基类的std::basic_streambuf::overflow行为类似,除了认沽区域将数据写入到相应的字符序列(文件),先用codecvt::out()充满的语言环境将字符转换为外部(可能是多字节)表示,存储在临时缓冲区(大,需要分配),然后使用文件I / O完全转换为字节复制到文件..
原文:
Behaves like the base class std::basic_streambuf::overflow, except that to write the data from the put area to the associated character sequence (to the file), first uses codecvt::out() of the imbued locale to convert the characters into external (possibly multibyte) representation, stored in a temporary buffer (allocated as large as necessary), then uses file I/O to copy all fully-converted bytes into the file.
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里
如果转换失败,并std::codecvt_base::error,返回Traits::eof()不尝试任何输出的情况下.
原文:
If the conversion fails with std::codecvt_base::error, returns Traits::eof() without attempting any output.
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里
如果关联的文件是不公开(is_open()==false,返回Traits::eof()做任何事情前
原文:
If the associated file is not open (is_open()==false, returns Traits::eof() before doing anything.
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里

目录

[编辑] 参数

(无)
原文:
(none)
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里

[编辑] 返回值

Traits::not_eof(c)以指示成功或Traits::eof()表示故障
原文:
Traits::not_eof(c) to indicate success or Traits::eof() to indicate failure.
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里

[编辑] 示例

[编辑] 另请参阅

相关的输出序列中写入字符认沽区域
原文:
writes characters to the associated output sequence from the put area
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里

(std::basic_streambuf 的虚受保护成员函数) [编辑]
读取相关的文件
原文:
reads from the associated file
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里

(虚受保护成员函数) [编辑]