mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 04:30:24 +01:00
modstruct: Basic implementation of native struct alignment and types.
This commit is contained in:
@@ -3,3 +3,6 @@ print(struct.calcsize("<bI"))
|
||||
print(struct.unpack("<bI", b"\x80\0\0\x01\0"))
|
||||
print(struct.calcsize(">bI"))
|
||||
print(struct.unpack(">bI", b"\x80\0\0\x01\0"))
|
||||
|
||||
# 32-bit little-endian specific
|
||||
#print(struct.unpack("bI", b"\x80\xaa\x55\xaa\0\0\x01\0"))
|
||||
|
||||
Reference in New Issue
Block a user