Skip to content

File: src/Xcm/v5/Assets/AssetsCodec.sol

AssetsCodec

Kind: library

ABI Surface

Errors

  • error InvalidAssetsLength()
  • error InvalidAssetsPayload()

Function Surface

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

Created with solidity-doc-generator