std::basic_filebuf::seekpos
Da cppreference.com
< cpp | io | basic filebuf
![]() |
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. |
protected: virtual pos_type seekpos( pos_type sp, |
||
Reposiciona o ponteiro de arquivo, se possível, para a posição indicada pelo
sp
.Original:
Repositions the file pointer, if possible, to the position indicated by
sp
.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.
Se o arquivo associado não está aberto (is_open()==false), não imediatamente.
Original:
If the associated file is not open (is_open()==false), fails immediately.
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.
Se o arquivo é aberto para escrita, primeiro escreve a área de largada e as seqüências unshift exigidos pelo local atualmente imbuído, usando
overflow()
Original:
If the file is open for writing, first writes the put area and any unshift sequences required by the currently imbued locale, using
overflow()
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.
Em seguida, reposiciona o ponteiro do arquivo, como chamando std::fseek
Original:
Then repositions the file pointer, as by calling std::fseek
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.
Se o arquivo é aberto para leitura, atualiza a obter área, se necessário.
Original:
If the file is open for reading, updates the get area if necessary.
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.
Se
sp
não foi obtida pelo telefone seekoff()
ou seekpos()
no mesmo arquivo, o comportamento é indefinido.Original:
If
sp
was not obtained by calling seekoff()
or seekpos()
on the same file, the behavior is undefined.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
sp | - | posição do arquivo obtido por
seekoff() ou seekpos() chamado mais cedo no mesmo arquivo Original: file position obtained by seekoff() or seekpos() called earlier on the same file The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | ||||||||||||||||||||||||
which | - | define quais das entradas e / ou as sequências de saída para afectar. Ele pode ser um ou uma combinação das seguintes constantes:
Original: defines which of the input and/or output sequences to affect. It can be one or a combination of the following constants:
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
sp
em sucesso ou em caso de falha pos_type(off_type(-1)).Original:
sp
on success or pos_type(off_type(-1)) 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
seekpos()
é chamado por std::basic_streambuf::pubseekpos, que é chamado pelas versões argumento único de std::basic_istream::seekg e std::basic_ostream::seekpOriginal:
seekpos()
is called by std::basic_streambuf::pubseekpos, which is called by the single-argument versions of std::basic_istream::seekg and std::basic_ostream::seekpThe 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] Exemplo
Esta seção está incompleta Motivo: sem exemplo |
[editar] Veja também
Invoca seekpos() Original: invokes seekpos() The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (of std::basic_streambuf função pública membro)
| |
[virtual] |
reposiciona a posição do arquivo, usando endereçamento relativo Original: repositions the file position, using relative addressing The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (virtual protegido função de membro) |
move o indicador de posição de arquivo para um local específico em um arquivo Original: moves the file position indicator to a specific location in a file The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (função) |