Skip to content

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 bool into SCALE format (1-byte).
  • function encodedSizeAt(bytes data, uint256 offset) internal pure returns (uint256)
    • Returns the number of bytes that a bool would occupy when SCALE-encoded.
  • function decode(bytes data) internal pure returns (bool)
    • Decodes SCALE-encoded bytes into a bool.
  • function decodeAt(bytes data, uint256 offset) internal pure returns (bool)
    • Decodes a boolean at the specified offset.

Created with solidity-doc-generator