solidity
import "solidity-scale-codec/src/Xcm/v5/Asset/AssetCodec.sol";AssetCodec
Kind: library
Functions
function encode(struct Asset asset) internal pure returns (bytes)function encodedSizeAt(bytes data, uint256 offset) internal pure returns (uint256)function decode(bytes data) internal pure returns (struct Asset, uint256)function decodeAt(bytes data, uint256 offset) internal pure returns (struct Asset, uint256)
encode(struct Asset asset)
solidity
function encode(struct Asset asset) internal pure returns (bytes)Encodes an `Asset` 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 `Asset` struct would occupy when SCALE-encoded.
decode(bytes data)
solidity
function decode(bytes data) internal pure returns (struct Asset, uint256)Decodes an `Asset` 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 Asset, uint256)Decodes an `Asset` struct from bytes starting at a given offset.