This implements CRC32 algorithm. See ITU-T V.42 for the formal specification.
◆ pj_crc32_calc()
Perform one-off CRC32 calculation to the specified data.
- Parameters
-
data | Input data. |
nbytes | Length of input data. |
- Returns
- CRC value of the data.
References PJ_END_DECL.
◆ pj_crc32_final()
Finalize CRC32 calculation and retrieve the CRC32 value.
- Parameters
-
- Returns
- The current CRC value.
◆ pj_crc32_init()
Initialize CRC32 context.
- Parameters
-
◆ pj_crc32_update()
Feed data incrementally to the CRC32 algorithm.
- Parameters
-
ctx | CRC32 context. |
data | Input data. |
nbytes | Length of the input data. |
- Returns
- The current CRC32 value.