std::setvbuf
De cppreference.com
![]() |
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í. |
Definido en el archivo de encabezado <cstdio>
|
||
int setvbuf( FILE *stream, char *buffer, int mode, size_t size ); |
||
Establece el búfer interno del
stream
archivo continuo dado . Original:
Sets the internal buffer of the given file stream
stream
. 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
stream | - | la secuencia de archivo para configurar el búfer
Original: the file stream to set the buffer to The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | ||||||||||||
buffer | - | puntero a un búfer para el flujo de usar
Original: pointer to a buffer for the stream to use The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | ||||||||||||
mode | - | tamponamiento modo de usar. Puede ser uno de los siguientes valores:
Original: buffering mode to use. It can be one of the following values:
The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | ||||||||||||
size | - | tamaño de la memoria intermedia
Original: size of the buffer The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[editar] Valor de retorno
0 en el éxito o distinto de cero en caso de error .
Original:
0 on success or nonzero on 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] Notas
Esta función sólo se puede utilizar después
stream
se ha asociado con un archivo abierto, pero antes de cualquier otra operación .Original:
This function may only be used after
stream
has been associated with an open file, but before any other operation.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.
buffer
puede ser nulo, en cuyo caso la presente convocatoria sólo cambia el tamaño del buffer interno .Original:
buffer
may be null, in which case this call only resizes the internal buffer.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] Ver también
establece el tampón para una secuencia de archivo Original: sets the buffer for a file stream The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
[virtual] |
proporciona suministrado por el usuario búfer o sin búfer convierte a esta filebuf Original: provides user-supplied buffer or turns this filebuf unbuffered 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 de std::basic_filebuf )
|
Documentación de C para setvbuf
|