func (db *DB) computePositions() {
	db.positions = &positions{}
	if countryPos[db.header.Type] != 0 {
		db.positions.Country = (countryPos[db.header.Type] - 1) << 2
	}
	if regionPos[db.header.Type] != 0 {
		db.positions.Region = (regionPos[db.header.Type] - 1) << 2
	}
	if cityPos[db.header.Type] != 0 {
		db.positions.City = (cityPos[db.header.Type] - 1) << 2
	}
	if ispPos[db.header.Type] != 0 {
		db.positions.ISP = (ispPos[db.header.Type] - 1) << 2
	}
	if proxytypePos[db.header.Type] != 0 {
		db.positions.Proxy = (proxytypePos[db.header.Type] - 1) << 2
	}
}
// compute field positions according to type
compute field positions according to type
// compute field positions according to type
func (db *DB) computePositions() {
	db.positions = &positions{}
	if countryPos[db.header.Type] != 0 {
		db.positions.Country = (countryPos[db.header.Type] - 1) << 2
	}
	if regionPos[db.header.Type] != 0 {
		db.positions.Region = (regionPos[db.header.Type] - 1) << 2
	}
	if cityPos[db.header.Type] != 0 {
		db.positions.City = (cityPos[db.header.Type] - 1) << 2
	}
	if ispPos[db.header.Type] != 0 {
		db.positions.ISP = (ispPos[db.header.Type] - 1) << 2
	}
	if proxytypePos[db.header.Type] != 0 {
		db.positions.Proxy = (proxytypePos[db.header.Type] - 1) << 2
	}
}
func ( db * DB ) computePositions ( ) { db . positions = & positions { } if countryPos [ db . header . Type ] != 0 { db . positions . Country = ( countryPos [ db . header . Type ] - 1 ) << 2 } if regionPos [ db . header . Type ] != 0 { db . positions . Region = ( regionPos [ db . header . Type ] - 1 ) << 2 } if cityPos [ db . header . Type ] != 0 { db . positions . City = ( cityPos [ db . header . Type ] - 1 ) << 2 } if ispPos [ db . header . Type ] != 0 { db . positions . ISP = ( ispPos [ db . header . Type ] - 1 ) << 2 } if proxytypePos [ db . header . Type ] != 0 { db . positions . Proxy = ( proxytypePos [ db . header . Type ] - 1 ) << 2 } }
compute field positions according to type
compute field positions according to type