Skip to content

File: src/Xcm/v5/Location/LocationCodec.sol

LocationCodec

Kind: library

ABI Surface

Errors

  • error InvalidLocationLength()

Function Surface

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

Created with solidity-doc-generator