File: src/Scale/Address/Address.sol
Address
Kind: library
ABI Surface
Errors
error InvalidAddressLength()
Function Surface
function encode(address value) internal pure returns (bytes)- Encodes an
addressinto SCALE format (20-byte little-endian).
- Encodes an
function encodedSizeAt(bytes data, uint256 offset) internal pure returns (uint256)- Returns the number of bytes that an
addresswould occupy when SCALE-encoded.
- Returns the number of bytes that an
function decode(bytes data) internal pure returns (address)- Decodes SCALE-encoded bytes into an
address.
- Decodes SCALE-encoded bytes into an
function decodeAt(bytes data, uint256 offset) internal pure returns (address)- Decodes an
addressfrom SCALE format at the specified offset.
- Decodes an