solidity
import "solidity-scale-codec/src/Scale/Bool/Bool.sol";Bool
Kind: library
Functions
function encodedSizeAt(bytes data, uint256 offset) internal pure returns (uint256)function decodeAt(bytes data, uint256 offset) internal pure returns (bool)
encode(bool value)
solidity
function encode(bool value) internal pure returns (bytes)Encodes a `bool` into SCALE format (1-byte).
encodedSizeAt(bytes data, uint256 offset)
solidity
function encodedSizeAt(bytes data, uint256 offset) internal pure returns (uint256)Returns the number of bytes that a `bool` would occupy when SCALE-encoded.
decode(bytes data)
solidity
function decode(bytes data) internal pure returns (bool)Decodes SCALE-encoded bytes into a `bool`.
decodeAt(bytes data, uint256 offset)
solidity
function decodeAt(bytes data, uint256 offset) internal pure returns (bool)Decodes a boolean at the specified offset.