forked from open-dis/open-dis-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.py
More file actions
34 lines (30 loc) · 650 Bytes
/
Copy pathtypes.py
File metadata and controls
34 lines (30 loc) · 650 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
"""types.py
This module contains type aliases to document the size of attributes required/
used by classes in dis7.py and elsewhere. It should not import other modules in
the opendis package.
Note: if imported directly, this may shadow the `types` built-in Python module,
which is rarely used.
"""
# Type aliases (for readability)
enum8 = int
enum16 = int
enum32 = int
int8 = int
int16 = int
int32 = int
int64 = int
uint8 = int
uint16 = int
uint32 = int
uint64 = int
float32 = float
float64 = float
struct8 = int
struct16 = int
struct32 = int
char8 = str
char16 = str
# Non-octet-size types for bitfields
bf_enum = int
bf_int = int
bf_uint = int