std::basic_filebuf::overflow
De cppreference.com
< cpp | io | basic filebuf
![]() |
Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate.
La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí. |
protected: virtual int_type overflow ( int_type c = Traits::eof() ); |
||
Se comporta como el std::basic_streambuf::overflow clase base, excepto que para escribir los datos del área de poner a la secuencia de caracteres asociado (el archivo), primero utiliza codecvt::out() de la configuración regional impregnado para convertir los caracteres en externa (posiblemente varios bytes) representación almacenada en una búfer temporal (asignado tan grande como sea necesario), a continuación, utiliza el archivo de E / S para copiar todos los bytes completamente convertidos en el archivo .
Original:
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.
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.
Si la conversión falla con std::codecvt_base::error, devuelve Traits::eof() sin pretender ninguna salida .
Original:
If the conversion fails with std::codecvt_base::error, returns Traits::eof() without attempting any output.
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.
Si el archivo asociado no está abierta (is_open()==false, devuelve Traits::eof() antes de hacer nada .
Original:
If the associated file is not open (is_open()==false, returns Traits::eof() before doing anything.
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.
Contenido |
[editar] Parámetros
(Ninguno)
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.
[editar] Valor de retorno
Traits::not_eof(c) para indicar el éxito o fracaso Traits::eof() para indicar .
Original:
Traits::not_eof(c) to indicate success or Traits::eof() to indicate 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.
[editar] Ejemplo
Esta sección está incompleta Razón: sin ejemplo |
[editar] Ver también
[virtual] |
Escribe los caracteres del área de colocación a la secuencia de salida asociada. (función miembro virtual protegida de std::basic_streambuf<CharT,Traits> )
|
[virtual] |
lee el archivo asociado Original: reads from the associated file The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función miembro virtual protegida) |