std::setvbuf
Da cppreference.com
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
Definido no cabeçalho <cstdio>
|
||
int setvbuf( FILE *stream, char *buffer, int mode, size_t size ); |
||
Define o buffer interno do
stream
dado arquivo de fluxo. 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.
Índice |
[editar] Parâmetros
stream | - | o fluxo de arquivo para definir o buffer para
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 | - | ponteiro para um buffer para o fluxo 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 | - | tamponante modo de usar. Pode ser um dos seguintes 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 | - | tamanho do buffer
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 em caso de sucesso ou diferente de zero em caso de falha.
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 função só pode ser utilizado após
stream
tem sido associado com um arquivo aberto, mas antes de qualquer outra operação.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
pode ser nulo, caso em que esta chamada apenas redimensiona o 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] Veja também
define o buffer para um fluxo de arquivo 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. (função) | |
[virtual] |
fornece fornecido pelo usuário tampão ou transforma este filebuf unbuffered 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. (virtual protegido of std::basic_filebuf função de membro)
|
Documentação C para setvbuf
|