e-CryptIt Engine - Checksums Xojo Plugin

CRC16.UpdateMemoryBlock Method

Updates the CRC checksum with a memory block taking selected bytes from the block.

UpdateMemoryBlock(
   data as MemoryBlock,
   offset as Integer,
   length as Integer,
   crc as UInt16) as UInt16

Parameters

data
The MemoryBlock data to update the CRC stream with.
offset
The first byte from the MemoryBlock to take. (note this value is zero based)
length
Count of bytes to take from the MemoryBlock.
crc
Crc value to calculate from. This is normally the result of the previous crc value in the stream.

Returns

UInt16

Remarks

See Also

CRC16 Class