class STCrc
|
CRC creation and testing object.
More... |
|
|
Public Methods
- STCrc ()
- ~STCrc ()
- WORD GetCRC16 (char *Pointer2DataStream, DWORD DataSize, WORD Polynomial)
- WORD GetCRC16Fixed (char *Pointer2DataStream, DWORD DataSize)
- WORD GetCRC16Tabled (char *Pointer2DataStream, DWORD DataSize, WORD Polynomial)
- WORD GetCRC16Continued (char *Pointer2DataStream, DWORD DataSize)
- DWORD GetCRC32 (char *Pointer2DataStream, DWORD DataSize, DWORD Polynomial)
- DWORD GetCRC32Fixed (char *Pointer2DataStream, DWORD DataSize)
- DWORD GetCRC32Tabled (char *Pointer2DataStream, DWORD DataSize, DWORD Polynomial)
- DWORD GetCRC32Continued (char *Pointer2DataStream, DWORD DataSize)
Provides a CRC of a data array.
Constructor
Destructor
WORD GetCRC16 (char *Pointer2DataStream, DWORD DataSize, WORD Polynomial)
| GetCRC16 |
Performs a 16 bit CRC calculation on a data stream of a given length.
Returns the CRC value as a WORD. You must also give a polynomial.
WORD GetCRC16Fixed (char *Pointer2DataStream, DWORD DataSize)
| GetCRC16Fixed |
Performs a 16 bit CRC calculation on a data stream of a given length.
Returns the CRC value as a WORD. This function will use a fixed polynomial
of 0x8005 for it's calculations. This is faster then GetCRC16
WORD GetCRC16Tabled (char *Pointer2DataStream, DWORD DataSize, WORD Polynomial)
| GetCRC16Tabled |
Performs a 16 bit CRC calculation on a data stream of a given length.
Returns the CRC value as a WORD. You must also give a polynomial.
This generates a table the first time it is called, that is slow. Ever time
after that (as long as you don't change the polynomial) it will be faster
then GetCRC16 or GetCRC16Fixed
WORD GetCRC16Continued (char *Pointer2DataStream, DWORD DataSize)
| GetCRC16Continued |
Continues a previously started 16 bit CRC calculation on a data stream of a
given length. Returns the CRC value as a WORD. It will use the previous polynomial.
It will use a table and generate it if needed. This is usefull if you have a
part of a data stream and are waiting to recieve the rest and want to get started
on the CRC calculation, like a continues stream.
DWORD GetCRC32 (char *Pointer2DataStream, DWORD DataSize, DWORD Polynomial)
| GetCRC32 |
Performs a 32 bit CRC calculation on a data stream of a given length.
Returns the CRC value as a DWORD. You must also give a polynomial.
DWORD GetCRC32Fixed (char *Pointer2DataStream, DWORD DataSize)
| GetCRC32Fixed |
Performs a 32 bit CRC calculation on a data stream of a given length.
Returns the CRC value as a DWORD. This function will use a fixed polynomial
of 0x8005 for it's calculations. This is faster then GetCRC32
DWORD GetCRC32Tabled (char *Pointer2DataStream, DWORD DataSize, DWORD Polynomial)
| GetCRC32Tabled |
Performs a 32 bit CRC calculation on a data stream of a given length.
Returns the CRC value as a DWORD. You must also give a polynomial.
This generates a table the first time it is called, that is slow. Ever time
after that (as long as you don't change the polynomial) it will be faster
then GetCRC32 or GetCRC32Fixed
DWORD GetCRC32Continued (char *Pointer2DataStream, DWORD DataSize)
| GetCRC32Continued |
Continues a previously started 32 bit CRC calculation on a data stream of a
given length. Returns the CRC value as a DWORD. It will use the previous polynomial.
It will use a table and generate it if needed. This is usefull if you have a
part of a data stream and are waiting to recieve the rest and want to get started
on the CRC calculation, like a continues stream.
Generated by: root on UtopiaPlanitia.Ept on Mon Dec 10 22:55:12 2001, using kdoc 2.0a53. |