Home > Language Reference > Classes > StreamMemory

Crc16 Method

Computes the CRC-16 value of the data in a stream (deprecated).

Syntax

Public Function Crc16(Optional ByVal lOffset As Long = 0, Optional ByVal lSize As Long = -1) As Integer

ParameterDescription
lOffsetOffset of the block on which to compute checksum.
lSizeSize of the block on which to compute checksum.

Remarks

The Crc16 method calculates the CRC-16 (cyclical redundancy check) of the data contained in a stream. The optional parameters lOffset and lSize respectively specify the offset in the stream and the block size on which the calculation has to be carried out. By default the calculation is carried out on all the data.

Note: this function is deprecated and will be removed in a future HB++ release. Prefer using the Crc16 global function instead.

System requirements

SystemMinimal versionRemarks
Palm OSPalm OS 3.0N/A