Solidity: Checking if specific bit is set in bytes24

前端 未结 0 700
滥情空心
滥情空心 2020-12-17 21:47

I\'m trying to implement a function in Solidity that checks if the bit at a position is set or not, i.e. I want a function like:

function isBitSet(bytes24 b,          


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