1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 18:35:20 +00:00
OpenMW/components/files/constrainedfilestream.cpp

10 lines
304 B
C++
Raw Normal View History

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