File: src/Xcm/v5/Location/LocationCodec.sol
LocationCodec
Kind: library
ABI Surface
Errors
error InvalidLocationLength()
Function Surface
function encode(struct Location location) internal pure returns (bytes)- Encodes a
Locationstruct into bytes.
- Encodes a
function encodedSizeAt(bytes data, uint256 offset) internal pure returns (uint256)- Returns the number of bytes that a
Locationstruct would occupy when SCALE-encoded.
- Returns the number of bytes that a
function decode(bytes data) internal pure returns (struct Location, uint256)- Decodes a
Locationstruct from bytes starting at the beginning of the data.
- Decodes a
function decodeAt(bytes data, uint256 offset) internal pure returns (struct Location, uint256)- Decodes a
Locationstruct from bytes starting at a given offset.
- Decodes a