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