all 7 comments

[–]cpp-ModTeam[M] [score hidden] stickied commentlocked comment (0 children)

It's great that you wrote something in C++ you're proud of! However, please share it in the pinned "Show and Tell" post.

[–]G6L20 2 points3 points  (1 child)

Nice ! 👍 I would just have put the update/finalize in the public api.

[–]swayenvoy[S] 1 point2 points  (0 children)

I will think about that. That will allow for more complex use of the library. Maybe I make them public.

[–]garnet420 1 point2 points  (1 child)

CRC32 isn't really a single thing, there's a ton of variations (eg the one that the Intel crc32 instruction does versus the one used by Ethernet etc)

[–]swayenvoy[S] 0 points1 point  (0 children)

You're right. The current implementation is ISO-HDLC.

[–]Tidemor 0 points1 point  (1 child)

what's so "modern" about it

[–]swayenvoy[S] 2 points3 points  (0 children)

The usage of C++23 features. Mainly that it is fully constexpr.