NX 1.0.3
niu2x's base c++ helper library
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
nx::digest::CRC32类 参考

This class NX_API describes crc 32 algorithm. 更多...

#include <digest.h>

Public 成员函数

 CRC32 ()
 
void update (const uint8_t *buf, size_t len)
 put data
 
uint32_t get_value () const
 get crc32 value
 

详细描述

This class NX_API describes crc 32 algorithm.

Example

uint8_t digest[16];
CRC32 crc32;

crc32.update("hello", 5);
uint32_t checksum = crc32.get_value();

构造及析构函数说明

◆ CRC32()

nx::digest::CRC32::CRC32 ( )

成员函数说明

◆ get_value()

uint32_t nx::digest::CRC32::get_value ( ) const

get crc32 value

返回
The value.

◆ update()

void nx::digest::CRC32::update ( const uint8_t *  buf,
size_t  len 
)

put data

参数
[in]bufThe buffer
[in]lenThe length

该类的文档由以下文件生成: