What is sizeof(std::streamsize) ?

M

mathieu

Hi,

I was trying to work around the #define _LARGEFILE_SOURCE/
_FILE_OFFSET_BITS... nightmare to get large file support in C,
thinking that things were nicely done in C++. But at least on my
compiler the size of std::streamsize is 4 !
How am I supposed to deal with large file in this case ?

Thanks,
-Mathieu
Ps: for some reason a google search did not reveal anything
interesting...
 
M

Marcel Müller

mathieu said:
I was trying to work around the #define _LARGEFILE_SOURCE/
_FILE_OFFSET_BITS... nightmare to get large file support in C,
thinking that things were nicely done in C++. But at least on my
compiler the size of std::streamsize is 4 !
How am I supposed to deal with large file in this case ?

Use the nativce operating system API.


Marcel
 
M

mathieu

Use the nativce operating system API.


$ wc boost_1_34_1/libs/filesystem/src/operations.cpp
1298 5115 46354 boost_1_34_1/libs/filesystem/src/operations.cpp

Great... all I wanted was simply the file size of a file...

-Mathieu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top