C# Класс cyberh0me.Utilities.CRC

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
Reflect8 byte[]

Открытые методы

Метод Описание
CRC ( )
calculate_chk16_Fletcher ( byte p, uint length ) : ushort
calculate_crc16 ( byte p, uint length ) : ushort
calculate_crc16_Buypass ( byte p, uint length ) : ushort
calculate_crc16_Ccitt_1D0F ( byte p, uint length ) : ushort
calculate_crc16_Ccitt_FFFF ( byte p, uint length ) : ushort
calculate_crc16_Ccitt_Xmodem ( byte p, uint length ) : ushort
calculate_crc16_DDS_110 ( byte p, uint length ) : ushort
calculate_crc16_DNP ( byte p, uint length ) : ushort
calculate_crc16_Dect_R ( byte p, uint length ) : ushort
calculate_crc16_Dect_X ( byte p, uint length ) : ushort
calculate_crc16_EN_13757 ( byte p, uint length ) : ushort
calculate_crc16_Genibus ( byte p, uint length ) : ushort
calculate_crc16_Kermit ( byte p, uint length ) : ushort
calculate_crc16_MCRF4XX ( byte p, uint length ) : ushort
calculate_crc16_Maxim ( byte p, uint length ) : ushort
calculate_crc16_Modbus ( byte p, uint length ) : ushort
calculate_crc16_Riello ( byte p, uint length ) : ushort
calculate_crc16_T10_DIF ( byte p, uint length ) : ushort
calculate_crc16_Teledisk ( byte p, uint length ) : ushort
calculate_crc16_USB ( byte p, uint length ) : ushort
calculate_crc16_X25 ( byte p, uint length ) : ushort
calculate_crc16_sick ( byte p, uint length ) : ushort
calculate_crc24_flexray_a ( byte p, uint length ) : uint
calculate_crc24_flexray_b ( byte p, uint length ) : uint
calculate_crc24_r64 ( byte p, uint length ) : uint
calculate_crc32 ( byte p, uint length ) : uint
calculate_crc32_bzip2 ( byte p, uint length ) : uint
calculate_crc32_c ( byte p, uint length ) : uint
calculate_crc32_d ( byte p, uint length ) : uint
calculate_crc32_jamcrc ( byte p, uint length ) : uint
calculate_crc32_k ( byte p, uint length ) : uint
calculate_crc32_mpeg2 ( byte p, uint length ) : uint
calculate_crc32_posix ( byte p, uint length ) : uint
calculate_crc32_q ( byte p, uint length ) : uint
calculate_crc32_xfer ( byte p, uint length ) : uint
calculate_crc8 ( byte p, uint length ) : byte
calculate_crc8_atm ( byte p, uint length ) : byte
calculate_crc8_ccitt ( byte p, uint length ) : byte
calculate_crc8_darc ( byte p, uint length ) : byte
calculate_crc8_icode ( byte p, uint length ) : byte
calculate_crc8_itu ( byte p, uint length ) : byte
calculate_crc8_j1850 ( byte p, uint length ) : byte
calculate_crc8_maxim ( byte p, uint length ) : byte
calculate_crc8_rohc ( byte p, uint length ) : byte
calculate_crc8_wcdma ( byte p, uint length ) : byte
init_crc16_normal_tab ( ushort table, ushort polynom ) : void
init_crc16_reflected_tab ( ushort table, ushort polynom ) : void
init_crc24_normal_tab ( uint table, uint polynom ) : void
init_crc32_normal_tab ( uint table, uint polynom ) : void
init_crc32_reflected_tab ( uint table, uint polynom ) : void
init_crc40_normal_tab ( ulong table, ulong polynom ) : void
init_crc64_normal_tab ( ulong table, ulong polynom ) : void
init_crc64_reflected_tab ( ulong table, ulong polynom ) : void
init_crc8_atm_tab ( ) : void
init_crc8_ccitt_tab ( ) : void
init_crc8_darc_tab ( ) : void
init_crc8_j1850_tab ( ) : void
init_crc8_maxim_tab ( ) : void
init_crc8_normal_tab ( byte table, byte polynom ) : void
init_crc8_reflected_tab ( byte table, byte polynom ) : void
init_crc8_rohc_tab ( ) : void
init_crc8_tab ( ) : void
init_crc8_wcdma_tab ( ) : void

Приватные методы

Метод Описание
Reflect16 ( ushort Value16 ) : ushort
Reflect24 ( uint Value24 ) : uint
Reflect32 ( uint Value32 ) : uint
Reflect40 ( ulong Value40 ) : ulong
Reflect64 ( ulong Value64 ) : ulong
calculate_crc40_gsm ( byte p, uint length ) : ulong
calculate_crc64 ( byte p, uint length ) : ulong
calculate_crc64_1b ( byte p, uint length ) : ulong
calculate_crc64_jones ( byte p, uint length ) : ulong
calculate_crc64_we ( byte p, uint length ) : ulong
reverse_endian ( ushort i ) : ushort
update_crc16_0589 ( ushort crc, byte c ) : ushort
update_crc16_1021 ( ushort crc, byte c ) : ushort
update_crc16_3D65 ( ushort crc, byte c ) : ushort
update_crc16_8005 ( ushort crc, byte c ) : ushort
update_crc16_8408 ( ushort crc, byte c ) : ushort
update_crc16_A001 ( ushort crc, byte c ) : ushort
update_crc16_dnp ( ushort crc, byte c ) : ushort
update_crc16_normal ( ushort table, ushort crc, byte c ) : ushort
update_crc16_reflected ( ushort table, ushort crc, byte c ) : ushort
update_crc16_t10_dif ( ushort crc, byte c ) : ushort
update_crc16_teledisk ( ushort crc, byte c ) : ushort
update_crc24 ( uint crc, byte c ) : uint
update_crc24_normal ( uint table, uint crc, byte c ) : uint
update_crc24_r64 ( uint crc, byte c ) : uint
update_crc32_c ( uint crc, byte c ) : uint
update_crc32_d ( uint crc, byte c ) : uint
update_crc32_k ( uint crc, byte c ) : uint
update_crc32_norm ( uint crc, byte c ) : uint
update_crc32_normal ( uint table, uint crc, byte c ) : uint
update_crc32_q ( uint crc, byte c ) : uint
update_crc32_refl ( uint crc, byte c ) : uint
update_crc32_reflected ( uint table, uint crc, byte c ) : uint
update_crc32_xfer ( uint crc, byte c ) : uint
update_crc40_gsm ( ulong crc, byte c ) : ulong
update_crc40_normal ( ulong table, ulong crc, byte c ) : ulong
update_crc64 ( ulong crc, byte c ) : ulong
update_crc64_1B ( ulong crc, byte c ) : ulong
update_crc64_jones ( ulong crc, byte c ) : ulong
update_crc64_normal ( ulong table, ulong crc, byte c ) : ulong
update_crc64_reflected ( ulong table, ulong crc, byte c ) : ulong
update_crc8 ( byte crc, byte c ) : byte
update_crc8_atm ( byte crc, byte c ) : byte
update_crc8_ccitt ( byte crc, byte c ) : byte
update_crc8_darc ( byte crc, byte c ) : byte
update_crc8_j1850 ( byte crc, byte c ) : byte
update_crc8_maxim ( byte crc, byte c ) : byte
update_crc8_rohc ( byte crc, byte c ) : byte
update_crc8_wcdma ( byte crc, byte c ) : byte
update_crc_sick ( ushort crc, byte c, byte prev_byte ) : ushort

Описание методов

CRC() публичный Метод

public CRC ( )

calculate_chk16_Fletcher() публичный Метод

public calculate_chk16_Fletcher ( byte p, uint length ) : ushort
p byte
length uint
Результат ushort

calculate_crc16() публичный Метод

public calculate_crc16 ( byte p, uint length ) : ushort
p byte
length uint
Результат ushort

calculate_crc16_Buypass() публичный Метод

public calculate_crc16_Buypass ( byte p, uint length ) : ushort
p byte
length uint
Результат ushort

calculate_crc16_Ccitt_1D0F() публичный Метод

public calculate_crc16_Ccitt_1D0F ( byte p, uint length ) : ushort
p byte
length uint
Результат ushort

calculate_crc16_Ccitt_FFFF() публичный Метод

public calculate_crc16_Ccitt_FFFF ( byte p, uint length ) : ushort
p byte
length uint
Результат ushort

calculate_crc16_Ccitt_Xmodem() публичный Метод

public calculate_crc16_Ccitt_Xmodem ( byte p, uint length ) : ushort
p byte
length uint
Результат ushort

calculate_crc16_DDS_110() публичный Метод

public calculate_crc16_DDS_110 ( byte p, uint length ) : ushort
p byte
length uint
Результат ushort

calculate_crc16_DNP() публичный Метод

public calculate_crc16_DNP ( byte p, uint length ) : ushort
p byte
length uint
Результат ushort

calculate_crc16_Dect_R() публичный Метод

public calculate_crc16_Dect_R ( byte p, uint length ) : ushort
p byte
length uint
Результат ushort

calculate_crc16_Dect_X() публичный Метод

public calculate_crc16_Dect_X ( byte p, uint length ) : ushort
p byte
length uint
Результат ushort

calculate_crc16_EN_13757() публичный Метод

public calculate_crc16_EN_13757 ( byte p, uint length ) : ushort
p byte
length uint
Результат ushort

calculate_crc16_Genibus() публичный Метод

public calculate_crc16_Genibus ( byte p, uint length ) : ushort
p byte
length uint
Результат ushort

calculate_crc16_Kermit() публичный Метод

public calculate_crc16_Kermit ( byte p, uint length ) : ushort
p byte
length uint
Результат ushort

calculate_crc16_MCRF4XX() публичный Метод

public calculate_crc16_MCRF4XX ( byte p, uint length ) : ushort
p byte
length uint
Результат ushort

calculate_crc16_Maxim() публичный Метод

public calculate_crc16_Maxim ( byte p, uint length ) : ushort
p byte
length uint
Результат ushort

calculate_crc16_Modbus() публичный Метод

public calculate_crc16_Modbus ( byte p, uint length ) : ushort
p byte
length uint
Результат ushort

calculate_crc16_Riello() публичный Метод

public calculate_crc16_Riello ( byte p, uint length ) : ushort
p byte
length uint
Результат ushort

calculate_crc16_T10_DIF() публичный Метод

public calculate_crc16_T10_DIF ( byte p, uint length ) : ushort
p byte
length uint
Результат ushort

calculate_crc16_Teledisk() публичный Метод

public calculate_crc16_Teledisk ( byte p, uint length ) : ushort
p byte
length uint
Результат ushort

calculate_crc16_USB() публичный Метод

public calculate_crc16_USB ( byte p, uint length ) : ushort
p byte
length uint
Результат ushort

calculate_crc16_X25() публичный Метод

public calculate_crc16_X25 ( byte p, uint length ) : ushort
p byte
length uint
Результат ushort

calculate_crc16_sick() публичный Метод

public calculate_crc16_sick ( byte p, uint length ) : ushort
p byte
length uint
Результат ushort

calculate_crc24_flexray_a() публичный Метод

public calculate_crc24_flexray_a ( byte p, uint length ) : uint
p byte
length uint
Результат uint

calculate_crc24_flexray_b() публичный Метод

public calculate_crc24_flexray_b ( byte p, uint length ) : uint
p byte
length uint
Результат uint

calculate_crc24_r64() публичный Метод

public calculate_crc24_r64 ( byte p, uint length ) : uint
p byte
length uint
Результат uint

calculate_crc32() публичный Метод

public calculate_crc32 ( byte p, uint length ) : uint
p byte
length uint
Результат uint

calculate_crc32_bzip2() публичный Метод

public calculate_crc32_bzip2 ( byte p, uint length ) : uint
p byte
length uint
Результат uint

calculate_crc32_c() публичный Метод

public calculate_crc32_c ( byte p, uint length ) : uint
p byte
length uint
Результат uint

calculate_crc32_d() публичный Метод

public calculate_crc32_d ( byte p, uint length ) : uint
p byte
length uint
Результат uint

calculate_crc32_jamcrc() публичный Метод

public calculate_crc32_jamcrc ( byte p, uint length ) : uint
p byte
length uint
Результат uint

calculate_crc32_k() публичный Метод

public calculate_crc32_k ( byte p, uint length ) : uint
p byte
length uint
Результат uint

calculate_crc32_mpeg2() публичный Метод

public calculate_crc32_mpeg2 ( byte p, uint length ) : uint
p byte
length uint
Результат uint

calculate_crc32_posix() публичный Метод

public calculate_crc32_posix ( byte p, uint length ) : uint
p byte
length uint
Результат uint

calculate_crc32_q() публичный Метод

public calculate_crc32_q ( byte p, uint length ) : uint
p byte
length uint
Результат uint

calculate_crc32_xfer() публичный Метод

public calculate_crc32_xfer ( byte p, uint length ) : uint
p byte
length uint
Результат uint

calculate_crc8() публичный Метод

public calculate_crc8 ( byte p, uint length ) : byte
p byte
length uint
Результат byte

calculate_crc8_atm() публичный Метод

public calculate_crc8_atm ( byte p, uint length ) : byte
p byte
length uint
Результат byte

calculate_crc8_ccitt() публичный Метод

public calculate_crc8_ccitt ( byte p, uint length ) : byte
p byte
length uint
Результат byte

calculate_crc8_darc() публичный Метод

public calculate_crc8_darc ( byte p, uint length ) : byte
p byte
length uint
Результат byte

calculate_crc8_icode() публичный Метод

public calculate_crc8_icode ( byte p, uint length ) : byte
p byte
length uint
Результат byte

calculate_crc8_itu() публичный Метод

public calculate_crc8_itu ( byte p, uint length ) : byte
p byte
length uint
Результат byte

calculate_crc8_j1850() публичный Метод

public calculate_crc8_j1850 ( byte p, uint length ) : byte
p byte
length uint
Результат byte

calculate_crc8_maxim() публичный Метод

public calculate_crc8_maxim ( byte p, uint length ) : byte
p byte
length uint
Результат byte

calculate_crc8_rohc() публичный Метод

public calculate_crc8_rohc ( byte p, uint length ) : byte
p byte
length uint
Результат byte

calculate_crc8_wcdma() публичный Метод

public calculate_crc8_wcdma ( byte p, uint length ) : byte
p byte
length uint
Результат byte

init_crc16_normal_tab() публичный Метод

public init_crc16_normal_tab ( ushort table, ushort polynom ) : void
table ushort
polynom ushort
Результат void

init_crc16_reflected_tab() публичный Метод

public init_crc16_reflected_tab ( ushort table, ushort polynom ) : void
table ushort
polynom ushort
Результат void

init_crc24_normal_tab() публичный Метод

public init_crc24_normal_tab ( uint table, uint polynom ) : void
table uint
polynom uint
Результат void

init_crc32_normal_tab() публичный Метод

public init_crc32_normal_tab ( uint table, uint polynom ) : void
table uint
polynom uint
Результат void

init_crc32_reflected_tab() публичный Метод

public init_crc32_reflected_tab ( uint table, uint polynom ) : void
table uint
polynom uint
Результат void

init_crc40_normal_tab() публичный Метод

public init_crc40_normal_tab ( ulong table, ulong polynom ) : void
table ulong
polynom ulong
Результат void

init_crc64_normal_tab() публичный Метод

public init_crc64_normal_tab ( ulong table, ulong polynom ) : void
table ulong
polynom ulong
Результат void

init_crc64_reflected_tab() публичный Метод

public init_crc64_reflected_tab ( ulong table, ulong polynom ) : void
table ulong
polynom ulong
Результат void

init_crc8_atm_tab() публичный Метод

public init_crc8_atm_tab ( ) : void
Результат void

init_crc8_ccitt_tab() публичный Метод

public init_crc8_ccitt_tab ( ) : void
Результат void

init_crc8_darc_tab() публичный Метод

public init_crc8_darc_tab ( ) : void
Результат void

init_crc8_j1850_tab() публичный Метод

public init_crc8_j1850_tab ( ) : void
Результат void

init_crc8_maxim_tab() публичный Метод

public init_crc8_maxim_tab ( ) : void
Результат void

init_crc8_normal_tab() публичный Метод

public init_crc8_normal_tab ( byte table, byte polynom ) : void
table byte
polynom byte
Результат void

init_crc8_reflected_tab() публичный Метод

public init_crc8_reflected_tab ( byte table, byte polynom ) : void
table byte
polynom byte
Результат void

init_crc8_rohc_tab() публичный Метод

public init_crc8_rohc_tab ( ) : void
Результат void

init_crc8_tab() публичный Метод

public init_crc8_tab ( ) : void
Результат void

init_crc8_wcdma_tab() публичный Метод

public init_crc8_wcdma_tab ( ) : void
Результат void

Описание свойств

Reflect8 публичное свойство

public byte[] Reflect8
Результат byte[]