Skip to content

File: src/Xcm/v5/Asset/AssetCodec.sol

AssetCodec

Kind: library

Function Surface

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

Created with solidity-doc-generator