1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2024-12-28 00:15:06 +00:00
OpenMW/components/files/constrainedfilestream.cpp
2022-09-22 21:35:26 +03:00

13 lines
350 B
C++

#include <filesystem>
#include "constrainedfilestream.hpp"
namespace Files
{
IStreamPtr openConstrainedFileStream(const std::filesystem::path& filename, std::size_t start, std::size_t length)
{
return std::make_unique<ConstrainedFileStream>(
std::make_unique<ConstrainedFileStreamBuf>(filename, start, length));
}
}