mirror of
				https://github.com/liberatedsystems/Sideband_CE.git
				synced 2024-09-03 04:13:27 +02:00 
			
		
		
		
	Updated MMAP API for Windows
This commit is contained in:
		
							parent
							
								
									81c51d004b
								
							
						
					
					
						commit
						daa395cb8a
					
				| @ -418,6 +418,9 @@ class GeoidHeight(object): | |||||||
|                 raise Exception("File has the wrong length") |                 raise Exception("File has the wrong length") | ||||||
| 
 | 
 | ||||||
|             self.headerlen = headerlen |             self.headerlen = headerlen | ||||||
|  |             if RNS.vendor.platformutils.is_windows(): | ||||||
|  |                 self.raw = mmap.mmap(fd, fullsize, access=mmap.ACCESS_READ) | ||||||
|  |             else: | ||||||
|                 self.raw = mmap.mmap(fd, fullsize, mmap.MAP_SHARED, mmap.PROT_READ) |                 self.raw = mmap.mmap(fd, fullsize, mmap.MAP_SHARED, mmap.PROT_READ) | ||||||
| 
 | 
 | ||||||
|         self.rlonres = self.width / 360.0 |         self.rlonres = self.width / 360.0 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user