Skip to content

File: src/Xcm/v5/AssetId/AssetIdCodec.sol

AssetIdCodec

Kind: library

Function Surface

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

Created with solidity-doc-generator