From e46e504af40323218e51637068121739051932d4 Mon Sep 17 00:00:00 2001 From: Schamper <1254028+Schamper@users.noreply.github.com> Date: Mon, 20 Nov 2023 16:09:34 +0100 Subject: [PATCH] Add __u8, __u16, __u32 and __u64 convenience types --- dissect/cstruct/cstruct.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dissect/cstruct/cstruct.py b/dissect/cstruct/cstruct.py index 8f9e7da..eab420d 100644 --- a/dissect/cstruct/cstruct.py +++ b/dissect/cstruct/cstruct.py @@ -139,6 +139,10 @@ def __init__(self, endian: str = "<", pointer: Optional[str] = None): "u4": "uint32", "u8": "uint64", "u16": "uint128", + "__u8": "uint8", + "__u16": "uint16", + "__u32": "uint32", + "__u64": "uint64", "uchar": "uint8", "ushort": "unsigned short", "uint": "unsigned int",