Speed up noise frame helper (#693)
This commit is contained in:
parent
aa3b8af246
commit
33d1d3d8c4
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue