Example use:
@struct
class Format:
# regular fields
a: uint32
b: uint16
# hash start action with target name
_hash_begin: DigestField.begin("hash", Md5_Algo)
# hash-wrapped fields
user_data: Bytes(10)
# hash field (make it optional to avoid errors in instantiation)
hash: DigestField("hash", Bytes(16))
# you can also use the Md5_Field directly
# hash: Md5_Field("hash")
Changes
- Updated documentation to include Digest
- New classes: DigestField and
- Added new parameter "both" to Action class
- Fixed protocol class of _SupportsUnpack
Full Changelog: v2.4.3...v2.4.5