2017-12-19 00:48:41 -05:00
|
|
|
try:
|
|
|
|
import uctypes
|
|
|
|
except ImportError:
|
|
|
|
print("SKIP")
|
|
|
|
raise SystemExit
|
|
|
|
|
2021-03-15 09:57:36 -04:00
|
|
|
data = bytearray(b"01234567")
|
2017-12-19 00:48:41 -05:00
|
|
|
|
2020-05-30 05:44:13 -04:00
|
|
|
print(uctypes.bytes_at(uctypes.addressof(data), 4))
|
|
|
|
print(uctypes.bytearray_at(uctypes.addressof(data), 4))
|