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