Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,15 @@ A ``Sequence`` is a collection of ordered fields, and differs from ``Array`` and
b'\nlalaland\xff\x01\x02'
>>> format.parse(b"\x004361789432197")
['', [52, 51, 54, 49, 55, 56, 57, 52, 51, 50, 49, 57, 55]]


Differences
-----------

Malstruct contains the following differences from the original construct library:
- Resurrection of version 2.8 features:
- ``PaddedString`` has been renamed back to ``String``
- ``Range`` and its bracket syntax. (e.g. ``Bytes[:5]``)
- New constructs:
- ``SkipNull``
- ``CBytes``
7 changes: 5 additions & 2 deletions construct/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

from construct.core import *
from construct.expr import *
from construct.helpers import *
from construct.debug import *
from construct.version import *
from construct import lib
Expand Down Expand Up @@ -56,6 +57,7 @@
'ByteSwapped',
'Bytewise',
'CancelParsing',
'CBytes',
'Check',
'CheckError',
'Checksum',
Expand Down Expand Up @@ -136,7 +138,8 @@
'OneOf',
'Optional',
'Padded',
'PaddedString',
'String',
'PaddedString', # deprecated
'Padding',
'PaddingError',
'PascalString',
Expand All @@ -146,7 +149,6 @@
'Peek',
'Pickled',
'Pointer',
'possiblestringencodings',
'Prefixed',
'PrefixedArray',
'Probe',
Expand Down Expand Up @@ -175,6 +177,7 @@
'Short',
'Single',
'SizeofError',
'SkipNull',
'Slicing',
'StopFieldError',
'StopIf',
Expand Down
Loading
Loading