次の方法で共有


streamoff

Supports internal operations.

#ifdef _WIN64
        typedef __int64 streamoff;
#else
        typedef long streamoff;
#endif

Remarks

The type is a signed integer that describes an object that can store a byte offset involved in various stream positioning operations. Its representation has at least 32 value bits. It is not necessarily large enough to represent an arbitrary byte position within a stream. The value streamoff(-1) generally indicates an erroneous offset.

Requirements

Header: <ios>

Namespace: std

See Also

Concepts

<ios> Members

iostream Programming

iostreams Conventions