func (db *DB) readIPv4Indexes() error {
	pos := db.header.IndexBaseAddr
	for i := 0; i < maxIndexes; i++ {
		start, err := db.readUint32(pos - 1)
		if err != nil {
			return err
		}
		end, err := db.readUint32(pos + 3)
		if err != nil {
			return err
		}
		db.ipv4Indexes[i][0] = start
		db.ipv4Indexes[i][1] = end
		pos += 8
	}
	return nil
}
// read and store all ipv4 indexes
read and store all ipv4 indexes
// read and store all ipv4 indexes
func (db *DB) readIPv4Indexes() error {
	pos := db.header.IndexBaseAddr
	for i := 0; i < maxIndexes; i++ {
		start, err := db.readUint32(pos - 1)
		if err != nil {
			return err
		}
		end, err := db.readUint32(pos + 3)
		if err != nil {
			return err
		}
		db.ipv4Indexes[i][0] = start
		db.ipv4Indexes[i][1] = end
		pos += 8
	}
	return nil
}
func ( db * DB ) readIPv4Indexes ( ) error { pos := db . header . IndexBaseAddr for i := 0 ; i < maxIndexes ; i ++ { start , err := db . readUint32 ( pos - 1 ) if err != nil { return err } end , err := db . readUint32 ( pos + 3 ) if err != nil { return err } db . ipv4Indexes [ i ] [ 0 ] = start db . ipv4Indexes [ i ] [ 1 ] = end pos += 8 } return nil }
read and store all ipv4 indexes
read and store all ipv4 indexes