File: src/Scale/Bool/Bool.sol
Bool
Kind: library
ABI Surface
Errors
error InvalidLength()
Function Surface
function encode(bool value) internal pure returns (bytes)- Encodes a
boolinto SCALE format (1-byte).
- Encodes a
function encodedSizeAt(bytes data, uint256 offset) internal pure returns (uint256)- Returns the number of bytes that a
boolwould occupy when SCALE-encoded.
- Returns the number of bytes that a
function decode(bytes data) internal pure returns (bool)- Decodes SCALE-encoded bytes into a
bool.
- Decodes SCALE-encoded bytes into a
function decodeAt(bytes data, uint256 offset) internal pure returns (bool)- Decodes a boolean at the specified offset.