feat: speed up writing outgoing dns records (#1259) · python-zeroconf/python-zeroconf@248655f
1122import cython
334+from ._protocol.outgoing cimport DNSOutgoing
5+4657cdef object _LEN_BYTE
68cdef object _LEN_SHORT
@@ -66,6 +68,8 @@ cdef class DNSAddress(DNSRecord):
66686769 cdef _eq(self, DNSAddress other)
687071+ cpdef write(self, DNSOutgoing out)
72+69737074cdef class DNSHinfo(DNSRecord):
7175@@ -75,6 +79,7 @@ cdef class DNSHinfo(DNSRecord):
75797680 cdef _eq(self, DNSHinfo other)
778182+ cpdef write(self, DNSOutgoing out)
78837984cdef class DNSPointer(DNSRecord):
8085@@ -84,6 +89,7 @@ cdef class DNSPointer(DNSRecord):
84898590 cdef _eq(self, DNSPointer other)
869192+ cpdef write(self, DNSOutgoing out)
87938894cdef class DNSText(DNSRecord):
8995@@ -92,6 +98,7 @@ cdef class DNSText(DNSRecord):
92989399 cdef _eq(self, DNSText other)
94100101+ cpdef write(self, DNSOutgoing out)
9510296103cdef class DNSService(DNSRecord):
97104@@ -104,6 +111,7 @@ cdef class DNSService(DNSRecord):
104111105112 cdef _eq(self, DNSService other)
106113114+ cpdef write(self, DNSOutgoing out)
107115108116cdef class DNSNsec(DNSRecord):
109117@@ -113,6 +121,7 @@ cdef class DNSNsec(DNSRecord):
113121114122 cdef _eq(self, DNSNsec other)
115123124+ cpdef write(self, DNSOutgoing out)
116125117126cdef class DNSRRSet:
118127