std::basic_streambuf::pubseekpos, std::basic_streambuf::seekpos
Da cppreference.com
< cpp | io | basic streambuf
![]() |
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. |
pos_type pubseekpos( pos_type pos, ios_base::openmode which = ios_base::in | ios_base::out ); |
(1) | |
protected: virtual pos_type seekpos( pos_type pos, |
(2) | |
Define o indicador de posição de entrada e / ou a sequência de saída para uma posição absoluta.
1) Original:
Sets the position indicator of the input and/or output sequence to an absolute position.
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.
Chama
2) seekpos(pos, which)
da classe mais derivadaOriginal:
Calls
seekpos(pos, which)
of the most derived classThe 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.
A versão classe base desta função não tem efeito. As classes derivadas podem substituir essa função para permitir o posicionamento absoluto do indicador de posição.
Original:
The base class version of this function has no effect. The derived classes may override this function to allow absolute positioning of the position indicator.
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
pos | - | posição absoluta para definir o indicador de posição para .
Original: absolute position to set the position indicator to. 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
1)O valor de retorno
2) seekpos(pos, which)
Original:
The return value of
seekpos(pos, which)
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.
A posição resultante absoluta, tal como definido pelo indicador de posição. A versão classe base retorna pos_type(off_type(1-)).
Original:
The resulting absolute position as defined by the position indicator. The base class version returns pos_type(off_type(1-)).
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] Exemplo
Esta seção está incompleta Motivo: sem exemplo |
[editar] Veja também
Invoca seekoff() Original: invokes seekoff() The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (função pública membro) |