Skip to content

File: src/Xcm/v3/MaybeErrorCode/MaybeErrorCodeCodec.sol

MaybeErrorCodeCodec

Kind: library

ABI Surface

Errors

  • error InvalidMaybeErrorCodeLength()
  • error InvalidMaybeErrorCodeVariant(uint8 variant)

Function Surface

  • function encode(struct MaybeErrorCode me) internal pure returns (bytes)
    • Encodes a MaybeErrorCode struct into SCALE bytes.
  • function encodedSizeAt(bytes data, uint256 offset) internal pure returns (uint256)
    • Returns the number of bytes that a MaybeErrorCode would occupy when SCALE-encoded.
  • function decode(bytes data) internal pure returns (struct MaybeErrorCode, uint256)
    • Decodes a MaybeErrorCode from SCALE bytes starting at the beginning.
  • function decodeAt(bytes data, uint256 offset) internal pure returns (struct MaybeErrorCode, uint256)
    • Decodes a MaybeErrorCode from SCALE bytes starting at a given offset.
  • function decodeError(struct MaybeErrorCode me) internal pure returns (uint8\[\])
    • Decodes the dispatch error bytes from an Error or TruncatedError MaybeErrorCode.

Created with solidity-doc-generator