File: src/Scale/Array/BoolArr.sol
BoolArr
Kind: library
ABI Surface
Errors
error InvalidBoolArrLength()
Function Surface
function encode(bool\[\] arr) internal pure returns (bytes)- Encodes an
bool[]into SCALE format.
- Encodes an
function encodedSizeAt(bytes data, uint256 offset) internal pure returns (uint256)- Returns the number of bytes that a
bool[]would occupy when SCALE-encoded.
- Returns the number of bytes that a
function decode(bytes data) internal pure returns (bool\[\], uint256)- Decodes an
bool[]from SCALE format.
- Decodes an
function decodeAt(bytes data, uint256 offset) internal pure returns (bool\[\], uint256)- Decodes an
bool[]from SCALE format at the specified offset.
- Decodes an