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
MaybeErrorCodestruct into SCALE bytes.
- Encodes a
function encodedSizeAt(bytes data, uint256 offset) internal pure returns (uint256)- Returns the number of bytes that a
MaybeErrorCodewould occupy when SCALE-encoded.
- Returns the number of bytes that a
function decode(bytes data) internal pure returns (struct MaybeErrorCode, uint256)- Decodes a
MaybeErrorCodefrom SCALE bytes starting at the beginning.
- Decodes a
function decodeAt(bytes data, uint256 offset) internal pure returns (struct MaybeErrorCode, uint256)- Decodes a
MaybeErrorCodefrom SCALE bytes starting at a given offset.
- Decodes a
function decodeError(struct MaybeErrorCode me) internal pure returns (uint8\[\])- Decodes the dispatch error bytes from an
ErrororTruncatedErrorMaybeErrorCode.
- Decodes the dispatch error bytes from an