> i did not understand what is happening there, There is nothing special. First it has not to be a template, a proc would do. And you have to know only masking and shifting. You shift the bits right, and then mask all but the lower 8 bits. Same as in C. Another way is casting to array of bytes and accessing the bytes as in
[https://forum.nim-lang.org/t/5713#35477](https://forum.nim-lang.org/t/5713#35477)