Skip to content

Commit

Permalink
version 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
andreax79 committed Sep 13, 2022
1 parent 492bfc3 commit 9790a91
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ is generated. The class offers the method "unpack" for deserializing
an array of bytes into a Python object and the method "pack" for
serializing the values into an array of bytes.

[Api Documentation](https://readthedocs.org/projects/python-cstruct/badge/?version=latest)
[Api Documentation](https://python-cstruct.readthedocs.io/en/latest/)

Example
-------
Expand Down
8 changes: 8 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,11 @@
### Added

- Flexible array support

### 3.1

2022-09-13

### Added

- Make CStruct/MemCStruct Pickle Friendly
7 changes: 2 additions & 5 deletions cstruct/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

__author__ = 'Andrea Bonomi <[email protected]>'
__license__ = 'MIT'
__version__ = '3.0'
__version__ = '3.1'
__date__ = '15 August 2013'

import struct
Expand Down Expand Up @@ -132,10 +132,7 @@ def sizeof(type_: str) -> int:


def parse(
__struct__: str,
__cls__: Optional[Type[AbstractCStruct]] = None,
__name__: Optional[str] = None,
**kargs: Dict[str, Any]
__struct__: str, __cls__: Optional[Type[AbstractCStruct]] = None, __name__: Optional[str] = None, **kargs: Dict[str, Any]
) -> Optional[Type[AbstractCStruct]]:
"""
Return a new class mapping a C struct/union definition.
Expand Down

0 comments on commit 9790a91

Please sign in to comment.