1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-24 07:18:09 +00:00
trezor-firmware/mocks/trezor/utils.py

16 lines
408 B
Python
Raw Normal View History

2017-04-08 16:43:26 +00:00
# extmod/modtrezorutils/modtrezorutils.c
def memcpy(dst: bytearray, dst_ofs: int,
src: bytearray, src_ofs: int,
'''
Copies at most `n` bytes from `src` at offset `src_ofs` to
`dst` at offset `dst_ofs`. Returns the number of actually
copied bytes.
'''
2017-04-08 16:43:26 +00:00
# extmod/modtrezorutils/modtrezorutils.c
def halt(msg: str=None) -> None:
'''
Halts execution
'''