solidity
import "solidity-scale-codec/src/Xcm/v5/AssetId/AssetIdCodec.sol";AssetIdCodec
Kind: library
Functions
function encode(struct AssetId assetId) internal pure returns (bytes)function encodedSizeAt(bytes data, uint256 offset) internal pure returns (uint256)function decode(bytes data) internal pure returns (struct AssetId, uint256)function decodeAt(bytes data, uint256 offset) internal pure returns (struct AssetId, uint256)
encode(struct AssetId assetId)
solidity
function encode(struct AssetId assetId) internal pure returns (bytes)Encodes an `AssetId` struct into bytes.
encodedSizeAt(bytes data, uint256 offset)
solidity
function encodedSizeAt(bytes data, uint256 offset) internal pure returns (uint256)Returns the number of bytes that an `AssetId` struct would occupy when SCALE-encoded.
decode(bytes data)
solidity
function decode(bytes data) internal pure returns (struct AssetId, uint256)Decodes an `AssetId` struct from bytes starting at the beginning of the data.
decodeAt(bytes data, uint256 offset)
solidity
function decodeAt(bytes data, uint256 offset) internal pure returns (struct AssetId, uint256)Decodes an `AssetId` struct from bytes starting at a given offset.