Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do perform file positioning operations with large (64-bit) offsets?

0
Posted

How do perform file positioning operations with large (64-bit) offsets?

0

If you’re using a raw Device and your compiler supports a 64-bit integral type, you can pass a large offset directly to seek. To convert the return value of seek to an integral type, use position_to_offset. If you’re using a stream_buffer or filtering_streambuf, convert the offset to a std::streampos using offset_to_position, then pass it to pubseekpos. To convert the return value of seek to an integral type, use position_to_offset. If you’re using a stream or filtering_stream, convert the offset to a std::streampos using offset_to_position, then pass it to the overload of seekg or seekp which takes a single std::streampos argument. To convert the return value of seek to an integral type, use position_to_offset. See Stream Offsets.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123