std::basic_filebuf::seekpos
Aus 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, |
||
Positioniert den Dateizeiger, wenn möglich, die Position, die durch
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.
Wenn die zugehörige Datei nicht geöffnet ist (is_open()==false), sofort fehlschlägt .
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.
Wenn die Datei zum Schreiben geöffnet, schreibt erste der Put-Bereich und keine unshift Sequenzen durch die derzeit durchdrungen locale Bedarf mit
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.
Dann positioniert den Dateizeiger, wie durch den Aufruf 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.
Wenn die Datei zum Lesen geöffnet, die Updates zu erhalten Bereich, wenn notwendig .
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.
Wenn
sp
wurde nicht durch Berufung seekoff()
oder seekpos()
auf der gleichen Datei erhalten, ist das Verhalten undefiniert .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.
Inhaltsverzeichnis |
[Bearbeiten] Parameter
sp | - | Position in der Datei erhalten durch
seekoff() oder seekpos() als früher auf die gleiche Datei 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 | - | Legt fest, welche der Ein-und / oder Ausgabe-Sequenzen zu beeinflussen. Es kann eine oder eine Kombination der folgenden Konstanten:
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. |
[Bearbeiten] Rückgabewert
sp
über Erfolg oder pos_type(off_type(-1)) bei Ausfall .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.
[Bearbeiten] Notes
seekpos()
durch std::basic_streambuf::pubseekpos, die von den single-Argument Versionen std::basic_istream::seekg und std::basic_ostream::seekp verlangt wirdOriginal:
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.
[Bearbeiten] Beispiel
This section is incomplete Reason: no example |
[Bearbeiten] Siehe auch
Beruft 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. (öffentliche Elementfunktion of std::basic_streambuf )
| |
[virtuell] |
positioniert die Position in der Datei, mit relativen Adressierung 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. (virtuellen geschützten Member-Funktion) |
verschiebt die Datei Positionsanzeiger zu einer bestimmten Position in einer Datei 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. (Funktion) |