|
faio
faio 公共 C++ 接口参考
|
文件定位的起点和偏移量。 更多...
Public 类型 | |
| enum class | origin { start , current , end } |
| 定位基准。 更多... | |
静态 Public 成员函数 | |
| static seek_from | start (std::uint64_t offset) |
| 从文件开头计算绝对定位。 | |
| static seek_from | current (std::int64_t offset) noexcept |
| 从当前文件游标计算相对定位。 | |
| static seek_from | end (std::int64_t offset) noexcept |
| 从文件末尾计算相对定位。 | |
Public 属性 | |
| origin | base |
| 定位起点。 | |
| std::int64_t | offset |
| 相对基准的有符号字节位移。 | |
文件定位的起点和偏移量。
|
strong |
|
static |
从文件开头计算绝对定位。
| offset | 相对所选起点的字节位移;current/end 支持负值,start 要求非负且不超 int64_t。 |
|
staticnoexcept |
从当前文件游标计算相对定位。
| offset | 相对所选起点的字节位移;current/end 支持负值,start 要求非负且不超 int64_t。 |
|
staticnoexcept |
从文件末尾计算相对定位。
| offset | 相对所选起点的字节位移;current/end 支持负值,start 要求非负且不超 int64_t。 |