mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-11-04 01:12:24 -06:00 
			
		
		
		
	
		
			
				
	
	
		
			9 lines
		
	
	
	
		
			253 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
	
		
			253 B
		
	
	
	
		
			Go
		
	
	
	
	
	
// Package sql3util implements SQLite utilities.
 | 
						|
package sql3util
 | 
						|
 | 
						|
// ValidPageSize returns true if s is a valid page size.
 | 
						|
//
 | 
						|
// https://sqlite.org/fileformat.html#pages
 | 
						|
func ValidPageSize(s int) bool {
 | 
						|
	return 512 <= s && s <= 65536 && s&(s-1) == 0
 | 
						|
}
 |