solidity
import "solidity-scale-codec/src/Xcm/v5/Assets/AssetsCodec.sol";AssetsCodec
Kind: library
Functions
function encode(struct Assets assets) internal pure returns (bytes)function encodedSizeAt(bytes data, uint256 offset) internal pure returns (uint256)function decode(bytes data) internal pure returns (struct Assets, uint256)function decodeAt(bytes data, uint256 offset) internal pure returns (struct Assets, uint256)
encode(struct Assets assets)
solidity
function encode(struct Assets assets) internal pure returns (bytes)Encodes an `Assets` struct into bytes.
encodedSizeAt(bytes data, uint256 offset)
solidity
function encodedSizeAt(bytes data, uint256 offset) internal pure returns (uint256)Returns the number of bytes that an `Assets` struct would occupy when SCALE-encoded.
decode(bytes data)
solidity
function decode(bytes data) internal pure returns (struct Assets, uint256)Decodes an `Assets` struct from bytes starting at the beginning of the data.
decodeAt(bytes data, uint256 offset)
solidity
function decodeAt(bytes data, uint256 offset) internal pure returns (struct Assets, uint256)Decodes an `Assets` struct from bytes starting at a given offset.