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

BoolArr

Kind: library

Functions

encode(bool[] arr)

solidity
function encode(bool[] arr) internal pure returns (bytes)

Encodes an `bool[]` into SCALE format.

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[], uint256)

Decodes an `bool[]` from SCALE format.

decodeAt(bytes data, uint256 offset)

solidity
function decodeAt(bytes data, uint256 offset) internal pure returns (bool[], uint256)

Decodes an `bool[]` from SCALE format at the specified offset.