Skip to content

Commit 314bc9f

Browse files
committed
Add mapping for ifgen
1 parent 90fbd0f commit 314bc9f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

runtimepy/primitives/byte_order.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@ def id(cls) -> Optional[int]:
3939
return 1
4040

4141

42+
# https://en.cppreference.com/w/cpp/types/endian
43+
STD_ENDIAN = {
44+
"little": ByteOrder.LITTLE_ENDIAN,
45+
"big": ByteOrder.BIG_ENDIAN,
46+
"native": ByteOrder.NATIVE,
47+
}
48+
49+
4250
DEFAULT_BYTE_ORDER = ByteOrder.NETWORK
4351

4452

0 commit comments

Comments
 (0)