func (db *DB) readRecordCountry(res *Result, off uint32) error {
	pos, err := db.readUint32(db.getIPV4ByteOffset("country", off) - 1)
	if err != nil {
		return err
	}
	short, err := db.readStr(pos)
	if err != nil {
		return err
	}
	long, err := db.readStr(pos + 3)
	if err != nil {
		return err
	}
	if short != "" && short != "-" {
		res.CountryCode = &short
	}
	if long != "" && long != "-" {
		res.Country = &long
	}
	return nil
}
// reads the Country field for record
reads the Country field for record
// reads the Country field for record
func (db *DB) readRecordCountry(res *Result, off uint32) error {
	pos, err := db.readUint32(db.getIPV4ByteOffset("country", off) - 1)
	if err != nil {
		return err
	}
	short, err := db.readStr(pos)
	if err != nil {
		return err
	}
	long, err := db.readStr(pos + 3)
	if err != nil {
		return err
	}
	if short != "" && short != "-" {
		res.CountryCode = &short
	}
	if long != "" && long != "-" {
		res.Country = &long
	}
	return nil
}
func ( db * DB ) readRecordCountry ( res * Result , off uint32 ) error { pos , err := db . readUint32 ( db . getIPV4ByteOffset ( " " , off ) - 1 ) if err != nil { return err } short , err := db . readStr ( pos ) if err != nil { return err } long , err := db . readStr ( pos + 3 ) if err != nil { return err } if short != " " && short != " " { res . CountryCode = & short } if long != " " && long != " " { res . Country = & long } return nil }
reads the Country field for record
reads the Country field for record