Appearance
Home > resol-vbus-core > utils > calcCrc16
utils.calcCrc16() function
Calculate the CRC-16 over the provided buffer.
Signature:
typescript
export declare function calcCrc16(buffer: Uint8Array, start: number, end: number): number;
Parameters
Parameter | Type | Description |
---|---|---|
buffer | Uint8Array | The buffer. |
start | number | The start index inside the buffer. |
end | number | The end index inside the buffer. |
number
The calculated checksum.