e-CryptIt Engine - Checksums Xojo Plugin |
|
EinhugurChecksum.Crc16_MemoryBlock Method (console safe)
To compute a checksum using the Crc16 algorithm on a MemoryBlock then user the Crc16_MemoryBlock function. (Deprecated)
Crc16_MemoryBlock(
bytes as MemoryBlock,
offset as Integer,
length as Integer,
crc as UInt16) as UInt16
Parameters
- bytes
- The bytes to calculate.
- offset
- The offset where in the MemoryBlock to start. (First byte in the MemoryBlock is 0)
- length
- The number of bytes in the memory block to do Adler32 checksum on.
- crc
- The crc16 value to calculate from.
Returns
- UInt16
Remarks
A good way to represent the checksum as an Hex string:
myString = Right("0000"+HEX(myCrc), 4)
This method is deprecated. Use the CRC16 class in CCITT mode to replace it.
Supported Platforms:
macOS Intel 64 bitmacOS Apple SiliconWindows 32 bitWindows 64 bitWindows ARM 64 bitLinux 32 bitLinux 64 bitLinux ARM 32 bitLinux ARM 64 bitiOS
See Also
EinhugurChecksum Module