std::basic_filebuf::seekpos
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 pos_type seekpos( pos_type sp, |
||
Cambia de posición el puntero de archivo, si es posible, a la posición indicada por
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.
Si el archivo asociado no está abierta (is_open()==false), falla inmediatamente .
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.
Si el archivo está abierto para escritura, escribe primero el área y poner cualquier secuencia unshift requeridos por la configuración regional seleccionada impregnada, utilizando
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.
Luego vuelve a colocar el puntero de archivo, como llamando 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.
Si el archivo está abierto para lectura, obtener actualizaciones de la zona si es necesario .
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.
Si
sp
no se obtuvo con seekoff()
llamado o seekpos()
en el mismo archivo, el comportamiento es 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.
Contenido |
[editar] Parámetros
sp | - | posición archivo obtenido por
seekoff() o seekpos() llamado antes en el mismo archivo 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 | - | que define de la entrada y / o secuencias de salida a afectar. Puede ser uno o una combinación de las siguientes 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
en el éxito o en el fracaso 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()
es llamado por std::basic_streambuf::pubseekpos, que es llamado por las versiones de un solo argumento de std::basic_istream::seekg y 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] Ejemplo
Esta sección está incompleta Razón: sin ejemplo |
[editar] Ver también
Invoca a seekpos(). (función miembro pública de std::basic_streambuf<CharT,Traits> )
| |
[virtual] |
reposiciona la posición del archivo, utilizando el direccionamiento 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. (función miembro virtual protegida) |
desplaza el indicador de posición de archivo a una ubicación específica en un archivo 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. (función) |