1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 21:59:55 +00:00
openmw/components/files/constrainedfilestream.cpp

10 lines
304 B
C++
Raw Normal View History

#include "constrainedfilestream.hpp"
2015-02-27 18:58:43 +00:00
namespace Files
{
IStreamPtr openConstrainedFileStream(const std::string& filename, std::size_t start, std::size_t length)
2015-02-20 16:57:18 +00:00
{
return std::make_shared<ConstrainedFileStream>(std::make_unique<ConstrainedFileStreamBuf>(filename, start, length));
2015-02-20 16:57:18 +00:00
}
}