6 "github.com/anacrolix/torrent/bencode"
9 // Marshals to the smallest compact byte representation.
12 var _ bencode.Marshaler = CompactIp{}
14 func (me CompactIp) MarshalBencode() ([]byte, error) {
15 return bencode.Marshal(func() []byte {
16 if ip4 := net.IP(me).To4(); ip4 != nil {