Skip to content

Commit c5a1eaa

Browse files
committed
feat: small speed ups to incoming data parser
1 parent 8cf5b87 commit c5a1eaa

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/zeroconf/_protocol/incoming.pxd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ cdef class DNSIncoming:
6060
cdef public cython.uint num_answers
6161
cdef public cython.uint num_authorities
6262
cdef public cython.uint num_additionals
63-
cdef public object valid
63+
cdef public cython.bint valid
6464
cdef public object now
6565
cdef public object scope_id
6666
cdef public object source
@@ -77,9 +77,9 @@ cdef class DNSIncoming:
7777
link=cython.uint,
7878
link_data=cython.uint
7979
)
80-
cdef _decode_labels_at_offset(self, unsigned int off, cython.list labels, cython.set seen_pointers)
80+
cdef cython.int _decode_labels_at_offset(self, unsigned int off, cython.list labels, cython.set seen_pointers)
8181

82-
cdef _read_header(self)
82+
cdef void _read_header(self)
8383

8484
cdef _initial_parse(self)
8585

0 commit comments

Comments
 (0)