diff --git a/dissect/cstruct/cstruct.py b/dissect/cstruct/cstruct.py index 3314e40..5b357a0 100644 --- a/dissect/cstruct/cstruct.py +++ b/dissect/cstruct/cstruct.py @@ -1381,6 +1381,9 @@ def __str__(self): def __repr__(self): return '<{}.{}: {}>'.format(self.enum.name, self.name, self.value) + def __call__(self): + return self.value + class Union(RawType): def __init__(self, cstruct):