Skip to content
solidity
import "solidity-scale-codec/src/Scale/Address/Address.sol";

Address

Kind: library

Functions

encode(address value)

solidity
function encode(address value) internal pure returns (bytes)

Encodes an `address` into SCALE format (20-byte little-endian).

encodedSizeAt(bytes data, uint256 offset)

solidity
function encodedSizeAt(bytes data, uint256 offset) internal pure returns (uint256)

Returns the number of bytes that an `address` would occupy when SCALE-encoded.

decode(bytes data)

solidity
function decode(bytes data) internal pure returns (address)

Decodes SCALE-encoded bytes into an `address`.

decodeAt(bytes data, uint256 offset)

solidity
function decodeAt(bytes data, uint256 offset) internal pure returns (address)

Decodes an `address` from SCALE format at the specified offset.