File: src/Xcm/v5/Assets/AssetsCodec.sol
AssetsCodec
Kind: library
ABI Surface
Errors
error InvalidAssetsLength()error InvalidAssetsPayload()
Function Surface
function encode(struct Assets assets) internal pure returns (bytes)- Encodes an
Assetsstruct into bytes.
- Encodes an
function encodedSizeAt(bytes data, uint256 offset) internal pure returns (uint256)- Returns the number of bytes that an
Assetsstruct would occupy when SCALE-encoded.
- Returns the number of bytes that an
function decode(bytes data) internal pure returns (struct Assets, uint256)- Decodes an
Assetsstruct from bytes starting at the beginning of the data.
- Decodes an
function decodeAt(bytes data, uint256 offset) internal pure returns (struct Assets, uint256)- Decodes an
Assetsstruct from bytes starting at a given offset.
- Decodes an