Why bytes32 is equal to uint256

First say that 1byte is equal to 8 bytes, and bytes32 is equal to 8*32=256 bytes;

Then uint8 is also equal to 8 bytes, uint256 is 32 times of 8 bytes (256/8=32);

So when seeing byteX and uintY, if X*8=Y, it means byteX=uintY.

Supongo que te gusta

Origin blog.csdn.net/u013102711/article/details/127642957
Recomendado
Clasificación