Skip to content

Commit

Permalink
make const
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Nov 4, 2023
1 parent 3e898a2 commit e82ffe5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion aioesphomeapi/_frame_helper/noise.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ cdef class APINoiseFrameHelper(APIFrameHelper):
cdef bint _is_ready

@cython.locals(
header="unsigned char[:]",
header="const unsigned char[:]",
preamble=cython.uint,
msg_size_high=cython.uint,
msg_size_low=cython.uint,
Expand Down
4 changes: 2 additions & 2 deletions aioesphomeapi/_frame_helper/plain_text.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ cdef object bytes_to_varuint, varuint_to_bytes
cpdef _varuint_to_bytes(cython.int value)

@cython.locals(result=cython.int, bitpos=cython.int, val=cython.int)
cpdef _bytes_to_varuint(unsigned char[:] value)
cpdef _bytes_to_varuint(const unsigned char[:] value)

cdef class APIPlaintextFrameHelper(APIFrameHelper):

@cython.locals(
msg_type=bytes,
length=bytes,
init_bytes="unsigned char[:]",
init_bytes="const unsigned char[:]",
add_length=bytes,
end_of_frame_pos=cython.uint,
length_int=cython.uint,
Expand Down

0 comments on commit e82ffe5

Please sign in to comment.