You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: target_dnat.go
    path of file: ./repos/wgnetwork/vendor/github.com/google/nftables/xt
    
    the code of the file until where you have to start completion: package xt

import (
	"net"

	"github.com/google/nftables/alignedbuff"
)

type NatRangeFlags uint

// See: https
    
func (x *NatRange) unmarshalAB(fam TableFamily, rev uint32, ab *alignedbuff.AlignedBuff) error {
	var err error
	if x.Flags, err = ab.Uint(); err != nil {
		return err
	}
	if x.MinIP, err = iPv46(ab, fam); err != nil {
		return err
	}
	if x.MaxIP, err = iPv46(ab, fam); err != nil {
		return err
	}
	if x.MinPort, err = ab.Uint16BE(); err != nil {
		return err
	}
	if x.MaxPort, err = ab.Uint16BE(); err != nil {
		return err
	}
	return nil
}