1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-31 09:45:40 +00:00
openmw/components/files/constrainedfilestream.cpp

10 lines
304 B
C++
Raw Permalink 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
{
2022-04-15 00:15:39 +00:00
return std::make_unique<ConstrainedFileStream>(std::make_unique<ConstrainedFileStreamBuf>(filename, start, length));
2015-02-20 16:57:18 +00:00
}
}