Skip to content

Commit

Permalink
Len returns the rr len of the uncompressed format.
Browse files Browse the repository at this point in the history
  • Loading branch information
matje committed Mar 17, 2016
1 parent b917123 commit 5107215
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -1896,6 +1896,11 @@ func Copy(r RR) RR {
return r1
}

// Len returns the length (in octets) of the uncompressed RR in wire format.
func Len(r RR) int {
return r.len()
}

// Copy returns a new *Msg which is a deep-copy of dns.
func (dns *Msg) Copy() *Msg {
return dns.CopyTo(new(Msg))
Expand Down

0 comments on commit 5107215

Please sign in to comment.