diff options
Diffstat (limited to 'wsutil/crc16.h')
-rw-r--r-- | wsutil/crc16.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/wsutil/crc16.h b/wsutil/crc16.h index 11616089cc..b80c012d83 100644 --- a/wsutil/crc16.h +++ b/wsutil/crc16.h @@ -103,6 +103,15 @@ WS_DLL_PUBLIC guint16 crc16_0x9949_seed(const guint8 *buf, guint len, guint16 se */ WS_DLL_PUBLIC guint16 crc16_0x3D65_seed(const guint8 *buf, guint len, guint16 seed); +/** Computes CRC16 checksum for the given data with the polynom 0x080F using + * precompiled CRC table + * @param buf a pointer to a buffer of the given length + * @param len the length of the given buffer + * @param seed The seed to use. + * @return the CRC16 checksum for the buffer + */ +WS_DLL_PUBLIC guint16 crc16_0x080F_seed(const guint8 *buf, guint len, guint16 seed); + #ifdef __cplusplus } #endif /* __cplusplus */ |