| e-CryptIt Engine REALbasic Plugin |
|
Crc16 Method
To compute a checksum using the CRC16 algorithm.
Crc16(
bytes as String,
crc as Integer) as Integer
Parameters
- bytes
- The bytes to calculate.
- crc
- The CRC value to calculate from.
Use 0 for the first round and then the previous CRC value if you are doing buffered calculations.
Returns
- Integer
Remarks
A good way to represent the checksum as an Hex string:
myString = Right("000"+HEX(mycrc), 4)
Supported Platforms:
PPC - MacOS 9Carbon - MacOS 9 and MacOS X (PEF)MacOS X PPC - (Mach-O)MacOS X Universal Binary (Mach-O)Win32 - WindowsLinux x86
See Also
GlobalMethods Global