large seek offset support

[SVN r28227]
This commit is contained in:
Jonathan Turkanis
2005-04-13 21:25:45 +00:00
parent 5cf18ff572
commit 1379d5f21c
21 changed files with 226 additions and 163 deletions

View File

@@ -4,10 +4,9 @@
// See http://www.boost.org/libs/iostreams for documentation.
#include <limits>
//#include <boost/limits.hpp>
#include <boost/iostreams/detail/ios.hpp>
#include <boost/iostreams/positioning.hpp>
#include <boost/integer_traits.hpp>
#include <boost/test/test_tools.hpp>
#include <boost/test/unit_test.hpp>
@@ -18,15 +17,15 @@ using namespace boost;
using namespace boost::iostreams;
using boost::unit_test::test_suite;
void extrema_test_test()
{
stream_offset minoff = numeric_limits<stream_offset>::min();
stream_offset maxoff = numeric_limits<stream_offset>::max();
BOOST_CHECK(minoff == position_to_offset(offset_to_position(minoff)));
BOOST_CHECK(0 == position_to_offset(offset_to_position(0)));
BOOST_CHECK(maxoff == position_to_offset(offset_to_position(maxoff)));
}
//void extrema_test_test()
//{
// stream_offset minoff = integer_traits<stream_offset>::const_min;
// stream_offset maxoff = integer_traits<stream_offset>::const_max;
//
// BOOST_CHECK(minoff == position_to_offset(offset_to_position(minoff)));
// BOOST_CHECK(0 == position_to_offset(offset_to_position(0)));
// BOOST_CHECK(maxoff == position_to_offset(offset_to_position(maxoff)));
//}
void large_file_test()
{