func (db *DB) lookupIPV4(ip uint32) (*Result, error) {
	pos, err := db.findPosForIPV4(ip)
	if err != nil {
		return nil, err
	}
	if pos == 0 {
		return nil, nil
	}
	res, err := db.readIPV4Record(pos + 1)
	if err != nil {
		return nil, err
	}
	res.IP = intToIPV4(ip)
	return res, nil
}
// lookups a record in db for an ipv4 addr
lookups a record in db for an ipv4 addr
// lookups a record in db for an ipv4 addr
func (db *DB) lookupIPV4(ip uint32) (*Result, error) {
	pos, err := db.findPosForIPV4(ip)
	if err != nil {
		return nil, err
	}
	if pos == 0 {
		return nil, nil
	}
	res, err := db.readIPV4Record(pos + 1)
	if err != nil {
		return nil, err
	}
	res.IP = intToIPV4(ip)
	return res, nil
}
func ( db * DB ) lookupIPV4 ( ip uint32 ) ( * Result , error ) { pos , err := db . findPosForIPV4 ( ip ) if err != nil { return nil , err } if pos == 0 { return nil , nil } res , err := db . readIPV4Record ( pos + 1 ) if err != nil { return nil , err } res . IP = intToIPV4 ( ip ) return res , nil }
lookups a record in db for an ipv4 addr
lookups a record in db for an ipv4 addr