Приветствую, помогите нубу перевести с паскаля вот этот код! Код (Text): const CCNET_CRC_POLY = $08408 function GetCRC16(InData: array of byte; DataLng: word): word; var i: word; j: byte; begin result:=0; for i:=0 to (DataLng-1) do begin result:=result xor InData[i]; for j:=0 to 7 do begin if (result and $0001)<>0 then begin result:= result shr 1; result:= result xor CCNET_CRC_POLY; end else result:= result shr 1; end; end; end; Или предложить вариант для проверки строки следующей формулой: Error detection CRC method CRC - CCITTusing whole byte shifting into a two-byte frame P(X) = X^16+ X^12+ X^5+ l Спасибо!