//固定长度字节数组之间的相互转换
pragma solidity ^0.4.0;
contract changeBytes{
bytes9 name = 0xe99988e8af97e5ae9d;
function changeBytes1() view returns(bytes1){
return bytes1(name);
}
function changeBytes2() view returns(bytes2){
return bytes2(name);
}
function changeBytes16() view returns(bytes16){
return bytes16(name);
}
}
7.Solidity-固定长度字节数组之间的相互转换
于 2022-11-06 16:39:23 首次发布