Fix documentation for these public functions
This commit is contained in:
parent
5eec7f362c
commit
95fd782f44
6
msg.go
6
msg.go
|
@ -1205,8 +1205,8 @@ func packBase32(s []byte) ([]byte, error) {
|
|||
return buf, nil
|
||||
}
|
||||
|
||||
// Resource record packer, pack rr into msg[off:]. See PackDomainName for documentation
|
||||
// about the compression.
|
||||
// PackRR packs a resource record rr into msg[off:].
|
||||
// See PackDomainName for documentation about the compression.
|
||||
func PackRR(rr RR, msg []byte, off int, compression map[string]int, compress bool) (off1 int, err error) {
|
||||
if rr == nil {
|
||||
return len(msg), &Error{err: "nil rr"}
|
||||
|
@ -1220,7 +1220,7 @@ func PackRR(rr RR, msg []byte, off int, compression map[string]int, compress boo
|
|||
return off1, nil
|
||||
}
|
||||
|
||||
// Resource record unpacker, unpack msg[off:] into an RR.
|
||||
// UnpackRR unpacks msg[off:] into an RR.
|
||||
func UnpackRR(msg []byte, off int) (rr RR, off1 int, err error) {
|
||||
// unpack just the header, to find the rr type and length
|
||||
var h RR_Header
|
||||
|
|
Loading…
Reference in New Issue