Skip to content

Instantly share code, notes, and snippets.

View viniciusfbb's full-sized avatar

Vinícius Felipe Botelho Barbosa viniciusfbb

View GitHub Profile
@viniciusfbb
viniciusfbb / crc16.pas
Created February 20, 2021 19:36
CRC16 hash in delphi
unit crc16;
interface
function CalcCRC16(AData: PByte; ASize: Integer): Word;
implementation
function CalcCRC16(AData: PByte; ASize: Integer): Word;
// Ported from c source: https://stackoverflow.com/a/10569892/2614619