首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

std::streamoff

Defined in header <ios>

?

?

typedef /*unspecified*/ streamoff;

?

?

类型std::streamoff一种有符号的完整类型,其大小足以表示操作系统支持的最大文件大小。通常,这是long long...

它用于表示类型的流位置%28值的偏移量。std::fpos29%。阿std::streamoff价值-1还用来表示某些I/O库函数的错误条件。

与性病的关系::

  • 两者的区别std::fpos对象是类型的值。std::streamoff
  • 类型值std::streamoff可加或减std::fpos产生不同的std::fpos...
  • 类型值std::fpos隐式可转换为std::streamoff%28转换结果是文件%29开头的偏移量。
  • 类型值std::fpos从类型的值可构造std::streamoff

另见

fpos

represents absolute position in a stream or a file (class template)

seekg

sets the input position indicator (public member function of std::basic_istream)

seekp

sets the output position indicator (public member function of std::basic_ostream)

代码语言:txt
复制
 ? cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com