Logo
Explore Help
Register Sign In
fengqi/lv_micropython
1
0
Fork 0
You've already forked lv_micropython
Code Issues Pull Requests 1 Actions Packages Projects Releases Wiki Activity
lv_micropython/tests/micropython/viper_addr.py.exp

8 lines
113 B
Plaintext
Raw Normal View History

py/viper: Allow casting of Python integers to viper pointers. This allows you to pass a number (being an address) to a viper function that expects a pointer, and also allows casting of integers to pointers within viper functions. This was actually the original behaviour, but it regressed due to native type identifiers being promoted to 4 bits in width.
2016-02-09 13:29:20 +00:00
<class 'bytearray'>
<class 'int'>
bytearray(b'0000')
bytearray(b'1111')
bytearray(b'2222')
bytearray(b'2233')
py: Allow to pass in read-only buffers to viper and inline-asm funcs. Fixes #4936.
2019-08-05 16:32:10 +10:00
10
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 89ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API