dissect.cstruct 4.4.dev2__tar.gz → 4.4.dev3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- dissect_cstruct-4.4.dev3/.gitattributes +1 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/PKG-INFO +1 -1
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect/cstruct/types/enum.py +2 -2
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect/cstruct/types/flag.py +2 -2
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect.cstruct.egg-info/PKG-INFO +1 -1
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect.cstruct.egg-info/SOURCES.txt +6 -4
- {dissect_cstruct-4.4.dev2/tests/docs → dissect_cstruct-4.4.dev3/tests/_docs}/Makefile +1 -1
- dissect_cstruct-4.4.dev3/tests/_docs/__init__.py +0 -0
- {dissect_cstruct-4.4.dev2/tests/docs → dissect_cstruct-4.4.dev3/tests/_docs}/conf.py +8 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/test_basic.py +1 -1
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tox.ini +4 -4
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/.git-blame-ignore-revs +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/COPYRIGHT +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/LICENSE +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/MANIFEST.in +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/README.md +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect/cstruct/__init__.py +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect/cstruct/bitbuffer.py +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect/cstruct/compiler.py +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect/cstruct/cstruct.py +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect/cstruct/exceptions.py +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect/cstruct/expression.py +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect/cstruct/parser.py +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect/cstruct/types/__init__.py +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect/cstruct/types/base.py +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect/cstruct/types/char.py +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect/cstruct/types/int.py +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect/cstruct/types/leb128.py +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect/cstruct/types/packed.py +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect/cstruct/types/pointer.py +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect/cstruct/types/structure.py +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect/cstruct/types/void.py +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect/cstruct/types/wchar.py +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect/cstruct/utils.py +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect.cstruct.egg-info/dependency_links.txt +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect.cstruct.egg-info/top_level.txt +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/examples/disk.py +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/examples/mirai.py +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/examples/pe.py +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/examples/protobuf.py +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/examples/secdesc.py +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/pyproject.toml +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/setup.cfg +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/__init__.py +0 -0
- {dissect_cstruct-4.4.dev2/tests/data → dissect_cstruct-4.4.dev3/tests/_data}/testdef.txt +0 -0
- {dissect_cstruct-4.4.dev2/tests/docs → dissect_cstruct-4.4.dev3/tests/_docs}/index.rst +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/conftest.py +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/test_align.py +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/test_bitbuffer.py +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/test_bitfield.py +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/test_compiler.py +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/test_ctypes.py +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/test_expression.py +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/test_parser.py +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/test_types_base.py +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/test_types_char.py +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/test_types_custom.py +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/test_types_enum.py +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/test_types_flag.py +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/test_types_int.py +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/test_types_leb128.py +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/test_types_packed.py +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/test_types_pointer.py +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/test_types_structure.py +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/test_types_union.py +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/test_types_void.py +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/test_types_wchar.py +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/test_utils.py +0 -0
- {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/utils.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tests/_data/** filter=lfs diff=lfs merge=lfs -text
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: dissect.cstruct
|
|
3
|
-
Version: 4.4.
|
|
3
|
+
Version: 4.4.dev3
|
|
4
4
|
Summary: A Dissect module implementing a parser for C-like structures: structure parsing in Python made easy
|
|
5
5
|
Author-email: Dissect Team <dissect@fox-it.com>
|
|
6
6
|
License: Apache License 2.0
|
|
@@ -114,13 +114,13 @@ class Enum(BaseType, IntEnum, metaclass=EnumMetaType):
|
|
|
114
114
|
Enums can be made using any integer type.
|
|
115
115
|
|
|
116
116
|
Example:
|
|
117
|
-
When using the default C-style parser, the following syntax is supported
|
|
117
|
+
When using the default C-style parser, the following syntax is supported::
|
|
118
118
|
|
|
119
119
|
enum <name> [: <type>] {
|
|
120
120
|
<values>
|
|
121
121
|
};
|
|
122
122
|
|
|
123
|
-
For example, an enum that has A=1, B=5 and C=6 could be written like so
|
|
123
|
+
For example, an enum that has A=1, B=5 and C=6 could be written like so::
|
|
124
124
|
|
|
125
125
|
enum Test : uint16 {
|
|
126
126
|
A, B=5, C
|
|
@@ -15,13 +15,13 @@ class Flag(BaseType, IntFlag, metaclass=EnumMetaType):
|
|
|
15
15
|
Flags can be made using any integer type.
|
|
16
16
|
|
|
17
17
|
Example:
|
|
18
|
-
When using the default C-style parser, the following syntax is supported
|
|
18
|
+
When using the default C-style parser, the following syntax is supported::
|
|
19
19
|
|
|
20
20
|
flag <name> [: <type>] {
|
|
21
21
|
<values>
|
|
22
22
|
};
|
|
23
23
|
|
|
24
|
-
For example, a flag that has A=1, B=4 and C=8 could be written like so
|
|
24
|
+
For example, a flag that has A=1, B=4 and C=8 could be written like so::
|
|
25
25
|
|
|
26
26
|
flag Test : uint16 {
|
|
27
27
|
A, B=4, C
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: dissect.cstruct
|
|
3
|
-
Version: 4.4.
|
|
3
|
+
Version: 4.4.dev3
|
|
4
4
|
Summary: A Dissect module implementing a parser for C-like structures: structure parsing in Python made easy
|
|
5
5
|
Author-email: Dissect Team <dissect@fox-it.com>
|
|
6
6
|
License: Apache License 2.0
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
.git-blame-ignore-revs
|
|
2
|
+
.gitattributes
|
|
2
3
|
COPYRIGHT
|
|
3
4
|
LICENSE
|
|
4
5
|
MANIFEST.in
|
|
@@ -59,7 +60,8 @@ tests/test_types_void.py
|
|
|
59
60
|
tests/test_types_wchar.py
|
|
60
61
|
tests/test_utils.py
|
|
61
62
|
tests/utils.py
|
|
62
|
-
tests/
|
|
63
|
-
tests/
|
|
64
|
-
tests/
|
|
65
|
-
tests/
|
|
63
|
+
tests/_data/testdef.txt
|
|
64
|
+
tests/_docs/Makefile
|
|
65
|
+
tests/_docs/__init__.py
|
|
66
|
+
tests/_docs/conf.py
|
|
67
|
+
tests/_docs/index.rst
|
|
File without changes
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
project = "dissect.cstruct"
|
|
2
|
+
|
|
1
3
|
extensions = [
|
|
2
4
|
"autoapi.extension",
|
|
3
5
|
"sphinx.ext.autodoc",
|
|
@@ -32,3 +34,9 @@ autodoc_typehints = "signature"
|
|
|
32
34
|
autodoc_member_order = "groupwise"
|
|
33
35
|
|
|
34
36
|
autosectionlabel_prefix_document = True
|
|
37
|
+
|
|
38
|
+
suppress_warnings = [
|
|
39
|
+
# https://github.com/readthedocs/sphinx-autoapi/issues/285
|
|
40
|
+
"autoapi.python_import_resolution",
|
|
41
|
+
"ref.python",
|
|
42
|
+
]
|
|
@@ -28,7 +28,7 @@ def test_duplicate_type(cs: cstruct, compiled: bool) -> None:
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
def test_load_file(cs: cstruct, compiled: bool) -> None:
|
|
31
|
-
path = Path(__file__).parent / "
|
|
31
|
+
path = Path(__file__).parent / "_data/testdef.txt"
|
|
32
32
|
|
|
33
33
|
cs.loadfile(path, compiled=compiled)
|
|
34
34
|
assert "test" in cs.typedefs
|
|
@@ -54,12 +54,12 @@ deps =
|
|
|
54
54
|
sphinx-design
|
|
55
55
|
furo
|
|
56
56
|
commands =
|
|
57
|
-
make -C tests/
|
|
58
|
-
make -C tests/
|
|
57
|
+
make -C tests/_docs clean
|
|
58
|
+
make -C tests/_docs html
|
|
59
59
|
|
|
60
60
|
[testenv:docs-linkcheck]
|
|
61
61
|
allowlist_externals = make
|
|
62
62
|
deps = {[testenv:docs-build]deps}
|
|
63
63
|
commands =
|
|
64
|
-
make -C tests/
|
|
65
|
-
make -C tests/
|
|
64
|
+
make -C tests/_docs clean
|
|
65
|
+
make -C tests/_docs linkcheck
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect.cstruct.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect.cstruct.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|