Skip to content

File: src/Xcm/v5/Weight/WeightCodec.sol

WeightCodec

Kind: library

ABI Surface

Errors

  • error InvalidWeightLength()

Function Surface

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

Created with solidity-doc-generator