Idiomatic way to set bits 7 and 6 to 1 and 0 respectively in a byte in Go

前端 未结 0 527
挽巷
挽巷 2021-01-14 03:25

What is considered the best practice when setting bits 6 and 7 of a single byte to 0 and 1 respectively?

Currently I am zeroing the two most significant bits, and the

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