std::streamoff
来自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. |
| Defined in header <ios>
|
||
| typedef /*unspecified*/ streamoff; |
||
的类型
std::streamoff是一个带符号的整数类型的大小足以代表由操作系统支持的可能的最大文件的大小。通常情况下,这是一个typedeflong long.Original:
The type
std::streamoff is a signed integral type of sufficient size to represent the maximum possible file size supported by the operating system. Typically, this is a typedef to long long.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.
它是用来表示从流位置的偏移(类型std::fpos值)。一个
std::streamoff的-1一些I / O库函数,也可以用来表示错误条件.Original:
It is used to represent offsets from stream positions (values of type std::fpos). A
std::streamoff value of -1 is also used to represent error conditions by some of the I/O library functions.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.
[编辑] 的关系与std :: FPOS的
- 两个std::fpos对象之间的差异是一个值类型std::streamoffOriginal:the difference between two std::fpos objects is a value of type std::streamoffThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
- std::streamoff类型的值可能会增加或减去std::fpos产生了不同的std::fpos.Original:a value of type std::streamoff may be added or subtracted from std::fpos yielding a different std::fpos.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
- std::fpos类型的值隐式转换为std::streamoff(转换结果的文件开始的偏移量Original:a value of type std::fpos is implicitly convertible to std::streamoff (the conversion results in the offset from the beginning of the file.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
- std::fpos类型的值类型的值是构造的std::streamoffOriginal:a value of type std::fpos is constructible from a value of type std::streamoffThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[编辑] 另请参阅
| 在流或文件的绝对位置 Original: represents absolute position in a stream or a file The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (类模板) | |
| sets the input position indicator (公共成员函数of std::basic_istream)
| |
| 设置输出位置指示器 Original: sets the output position indicator 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_ostream)
| |