mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-28 17:18:29 +00:00
18 lines
446 B
Python
18 lines
446 B
Python
from typing import *
|
|
|
|
# extmod/modtrezorutils/modtrezorutils.c
|
|
def memcpy(dst: bytearray, dst_ofs: int,
|
|
src: bytearray, src_ofs: int,
|
|
n: int) -> 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.
|
|
'''
|
|
|
|
# extmod/modtrezorutils/modtrezorutils.c
|
|
def halt(msg: str = None) -> None:
|
|
'''
|
|
Halts execution.
|
|
'''
|