// Implementation of dns.Wirer
Implementation of dns.Wirer
// Implementation of dns . Wirer
func (rd *LOC) Decode(b []byte, pos *int, sniffer dns.WireDecodeSniffer) (err error) {
	p0 := &b[*pos]
	if (*dns.Octet)(&rd.Version).Decode(b, pos, sniffer); err != nil {
		return
	}
	if (*dns.Octet)(&rd.Size).Decode(b, pos, sniffer); err != nil {
		return
	}
	if (*dns.Octet)(&rd.HorizPre).Decode(b, pos, sniffer); err != nil {
		return
	}
	if (*dns.Octet)(&rd.VertPre).Decode(b, pos, sniffer); err != nil {
		return
	}
	if (*dns.Octets4)(&rd.Longitude).Decode(b, pos, sniffer); err != nil {
		return
	}
	if (*dns.Octets4)(&rd.Latitude).Decode(b, pos, sniffer); err != nil {
		return
	}
	if (*dns.Octets4)(&rd.Altitude).Decode(b, pos, sniffer); err != nil {
		return
	}
	if sniffer != nil {
		sniffer(p0, &b[*pos-1], dns.SniffRDataLOC, rd)
	}
	return
}
func ( rd * LOC ) Decode ( b [ ] byte , pos * int , sniffer dns . WireDecodeSniffer ) ( err error ) { p0 := & b [ * pos ] if ( * dns . Octet ) ( & rd . Version ) . Decode ( b , pos , sniffer ) ; err != nil { return } if ( * dns . Octet ) ( & rd . Size ) . Decode ( b , pos , sniffer ) ; err != nil { return } if ( * dns . Octet ) ( & rd . HorizPre ) . Decode ( b , pos , sniffer ) ; err != nil { return } if ( * dns . Octet ) ( & rd . VertPre ) . Decode ( b , pos , sniffer ) ; err != nil { return } if ( * dns . Octets4 ) ( & rd . Longitude ) . Decode ( b , pos , sniffer ) ; err != nil { return } if ( * dns . Octets4 ) ( & rd . Latitude ) . Decode ( b , pos , sniffer ) ; err != nil { return } if ( * dns . Octets4 ) ( & rd . Altitude ) . Decode ( b , pos , sniffer ) ; err != nil { return } if sniffer != nil { sniffer ( p0 , & b [ * pos - 1 ] , dns . SniffRDataLOC , rd ) } return }
Implementation of dns.Wirer
Implementation of dns . Wirer