1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-29 09:32:45 +00:00
OpenMW/components/files/constrainedfilestream.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
350 B
C++
Raw Normal View History

#include <filesystem>
#include "constrainedfilestream.hpp"
2015-02-27 19:58:43 +01:00
namespace Files
{
IStreamPtr openConstrainedFileStream(const std::filesystem::path& 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
}
}