Speed up noise frame helper (#693)

This commit is contained in:
J. Nick Koston 2023-11-24 12:04:12 -06:00 committed by GitHub
parent aa3b8af246
commit 33d1d3d8c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 5 deletions

View File

@ -24,15 +24,16 @@ cdef class APINoiseFrameHelper(APIFrameHelper):
@cython.locals(
header=bytes,
preamble=cython.uint,
msg_size_high=cython.uint,
msg_size_low=cython.uint,
preamble="unsigned char",
msg_size_high="unsigned char",
msg_size_low="unsigned char",
)
cpdef data_received(self, object data)
@cython.locals(
type_high=cython.uint,
type_low=cython.uint
msg=bytes,
type_high="unsigned char",
type_low="unsigned char"
)
cdef _handle_frame(self, bytes frame)