SDK Software CRC Toolkit
CRC32Bytes Method

      Example      


Description
Calculates a CRC32 checksum for a byte array.
Syntax
varCRC = CRCControlObject.CRC32Bytes(ByteArray(), HexYN, XOrIt, [FCS])

The CRC32Bytes Method has the following parts:

Part Description
ByteArray() Required. The byte array for which a CRC should be calculated. Must be at least 1 byte long.
HexYN Required. Boolean value. True if the CRC should be returned as a Hex string, False if it should be returned as a Long integer.
XorIt Required. Boolean value. True if the CRC should be complemented. Generally, you should probably set this to True.
FCS Optional. Long integer. An FCS or Frame Check Sequence is used for pre-conditioning the crc generator. Omit this argument to use the default FCS. Pass the interim CRC generated by a previous run of this method (with XOrIt as False) to process a byte array (or indeed a file) in chunks. See the sample code supplied for more information.


In order to view this documentation as it was intended you need to have scripting turned on.