mirror of
https://github.com/aicodix/code.git
synced 2026-04-27 14:30:36 +00:00
CRC is in CODE namespace
This commit is contained in:
parent
189715364e
commit
6bfbc4ed66
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ For example, if we need to integrate CRC32 checking for a few bytes, like in the
|
||||||
```
|
```
|
||||||
We can add it to our project as simple as that:
|
We can add it to our project as simple as that:
|
||||||
```
|
```
|
||||||
DSP::CRC<uint32_t> crc(0xEDB88320, 0xFFFFFFFF);
|
CODE::CRC<uint32_t> crc(0xEDB88320, 0xFFFFFFFF);
|
||||||
for (uint8_t c: std::string("Hello World!")) crc(c);
|
for (uint8_t c: std::string("Hello World!")) crc(c);
|
||||||
assert(~crc() == 0x1C291CA3);
|
assert(~crc() == 0x1C291CA3);
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue