mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2024-12-28 00:15:06 +00:00
13 lines
350 B
C++
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));
|
|
}
|
|
}
|