File: src/Xcm/v5/Asset/AssetCodec.sol
AssetCodec
Kind: library
Function Surface
function encode(struct Asset asset) internal pure returns (bytes)- Encodes an
Assetstruct into bytes.
- Encodes an
function encodedSizeAt(bytes data, uint256 offset) internal pure returns (uint256)- Returns the number of bytes that an
Assetstruct would occupy when SCALE-encoded.
- Returns the number of bytes that an
function decode(bytes data) internal pure returns (struct Asset, uint256)- Decodes an
Assetstruct from bytes starting at the beginning of the data.
- Decodes an
function decodeAt(bytes data, uint256 offset) internal pure returns (struct Asset, uint256)- Decodes an
Assetstruct from bytes starting at a given offset.
- Decodes an