What are some ways to convert from bytes8
hexadecimal to uint64
binary?
You can just cast it:
function test(bytes8 b) public pure returns (uint64) {
return uint64(b);
}
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.
Sign up to join this communityYou can just cast it:
function test(bytes8 b) public pure returns (uint64) {
return uint64(b);
}