Skip to content

File: src/Scale/Unsigned/U256.sol

U256

Kind: library

ABI Surface

Errors

  • error InvalidU256Length()

Function Surface

  • function encode(uint256 value) internal pure returns (bytes)
    • Encodes an uint256 into SCALE format (32-byte little-endian).
  • function encodedSizeAt(bytes data, uint256 offset) internal pure returns (uint256)
    • Returns the number of bytes that a uint256 would occupy when SCALE-encoded.
  • function decode(bytes data) internal pure returns (uint256)
    • Decodes SCALE-encoded bytes into an uint256.
  • function decodeAt(bytes data, uint256 offset) internal pure returns (uint256)
    • Decodes an uint256 at the specified offset.
  • function toLittleEndian(uint256 value) internal pure returns (bytes32)
    • Converts an uint256 to little-endian bytes32

Created with solidity-doc-generator