Skip to content

File: src/Xcm/v5/Junctions/JunctionsCodec.sol

JunctionsCodec

Kind: library

ABI Surface

Errors

  • error InvalidJunctionsCount(uint8 count)
  • error InvalidJunctionsLength(uint8 count)

Function Surface

  • function encode(struct Junctions junctions) internal pure returns (bytes)
    • Encodes a Junctions struct into bytes.
  • function encodedSizeAt(bytes data, uint256 offset) internal pure returns (uint256)
    • Returns the number of bytes that a Junctions struct would occupy when SCALE-encoded.
  • function decode(bytes data) internal pure returns (struct Junctions, uint256)
    • Decodes bytes into a Junctions struct.
  • function decodeAt(bytes data, uint256 offset) internal pure returns (struct Junctions, uint256)
    • Decodes bytes into a Junctions struct starting from a specific offset.

Created with solidity-doc-generator