Skip to content

File: src/Scale/Unsigned/U64.sol

U64

Kind: library

ABI Surface

Errors

  • error InvalidU64Length()

Function Surface

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

Created with solidity-doc-generator