Custom 4 bit data type in C#

后端 未结 0 813
情书的邮戳
情书的邮戳 2021-01-17 11:18

I want to create a custom data type which is 4 bits (nibble).

One option is this -

byte source = 0xAD;
var hiNybble = (source & 0xF0) >> 4; /         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题