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

13 lines
350 B
C++
Raw Normal View History

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