Skip to content

Commit 3f7f817

Browse files
committed
Add declarative syntax
1 parent 7678a8f commit 3f7f817

5 files changed

Lines changed: 1036 additions & 1 deletion

File tree

dissect/cstruct/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from dissect.cstruct.bitbuffer import BitBuffer
44
from dissect.cstruct.cstruct import cstruct, ctypes, ctypes_type
5+
from dissect.cstruct.declarative import Struct, field
56
from dissect.cstruct.exceptions import (
67
Error,
78
NullPointerDereference,
@@ -66,6 +67,7 @@
6667
"ParserError",
6768
"Pointer",
6869
"ResolveError",
70+
"Struct",
6971
"Structure",
7072
"Union",
7173
"Void",
@@ -75,6 +77,7 @@
7577
"ctypes",
7678
"ctypes_type",
7779
"dumpstruct",
80+
"field",
7881
"hexdump",
7982
"p8",
8083
"p16",

0 commit comments

Comments
 (0)