mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 12:26:39 +00:00 
			
		
		
		
	moved the ConstrainedDataStream into its own source file and changed BSAFile to use it though the exposed factory function. This is in preperation foreimplementing it based on feedback from profiling that (at least on windows) the C++ iostreams library is quite slow.
		
			
				
	
	
		
			8 lines
		
	
	
	
		
			320 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
	
		
			320 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef COMPONENTS_FILES_CONSTRAINEDFILEDATASTREAM_HPP
 | |
| #define COMPONENTS_FILES_CONSTRAINEDFILEDATASTREAM_HPP
 | |
| 
 | |
| #include <OgreDataStream.h>
 | |
| 
 | |
| Ogre::DataStreamPtr openConstrainedFileDataStream (char const * filename, size_t offset = 0, size_t length = 0xFFFFFFFF);
 | |
| 
 | |
| #endif // COMPONENTS_FILES_CONSTRAINEDFILEDATASTREAM_HPP
 |