Skip to content

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 PalletInfo struct into SCALE bytes.
  • function encodedSizeAt(bytes data, uint256 offset) internal pure returns (uint256)
    • Returns the number of bytes that a PalletInfo would occupy when SCALE-encoded.
  • function decode(bytes data) internal pure returns (struct PalletInfo, uint256)
    • Decodes a PalletInfo from SCALE bytes starting at the beginning.
  • function decodeAt(bytes data, uint256 offset) internal pure returns (struct PalletInfo, uint256)
    • Decodes a PalletInfo from SCALE bytes starting at a given offset.

Created with solidity-doc-generator