File: src/Xcm/v5/PalletInfo/PalletInfoCodec.sol
PalletInfoCodec
Kind: library
ABI Surface
Errors
error InvalidPalletInfoLength()error PalletNameTooLong(uint256 length)
Function Surface
function encode(struct PalletInfo info) internal pure returns (bytes)- Encodes a
PalletInfostruct into SCALE bytes.
- Encodes a
function encodedSizeAt(bytes data, uint256 offset) internal pure returns (uint256)- Returns the number of bytes that a
PalletInfowould occupy when SCALE-encoded.
- Returns the number of bytes that a
function decode(bytes data) internal pure returns (struct PalletInfo, uint256)- Decodes a
PalletInfofrom SCALE bytes starting at the beginning.
- Decodes a
function decodeAt(bytes data, uint256 offset) internal pure returns (struct PalletInfo, uint256)- Decodes a
PalletInfofrom SCALE bytes starting at a given offset.
- Decodes a