mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 01:26:39 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
	
		
			350 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			12 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));
 | 
						|
    }
 | 
						|
}
 |