__init__(self,
block_name,
request,
algorithm='crc32',
length=0,
endian='<',
name=None)
(Constructor)
Create a checksum block bound to the block with the specified name.
You *can not* create a checksm for any currently open blocks.
-
- Parameters:
block_name -
Name of block to apply sizer to
(type=String)
request -
Request this block belongs to
(type=s_request)
algorithm -
(Optional, def=crc32) Checksum algorithm to use. (crc32,
adler32, md5, sha1)
(type=String)
length -
(Optional, def=0) Length of checksum, specify 0 to
auto-calculate
(type=Integer)
endian -
(Optional, def=LITTLE_ENDIAN) Endianess of the bit field
(LITTLE_ENDIAN: <, BIG_ENDIAN: >)
(type=Character)
name -
Name of this checksum field
(type=String)
|