Skip to content

File: src/Scale/Array/U32Arr.sol

U32Arr

Kind: library

ABI Surface

Errors

  • error InvalidU32ArrLength()

Function Surface

  • function encode(uint32\[\] arr) internal pure returns (bytes)
    • Encodes an uint32[] into SCALE format.
  • function encodedSizeAt(bytes data, uint256 offset) internal pure returns (uint256)
    • Returns the number of bytes that a uint32[] would occupy when SCALE-encoded.
  • function decode(bytes data) internal pure returns (uint32\[\], uint256)
    • Decodes an uint32[] from SCALE format.
  • function decodeAt(bytes data, uint256 offset) internal pure returns (uint32\[\], uint256)
    • Decodes an uint32[] from SCALE format at the specified offset.

Created with solidity-doc-generator