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
uint256into SCALE format (32-byte little-endian).
- Encodes an
function encodedSizeAt(bytes data, uint256 offset) internal pure returns (uint256)- Returns the number of bytes that a
uint256would occupy when SCALE-encoded.
- Returns the number of bytes that a
function decode(bytes data) internal pure returns (uint256)- Decodes SCALE-encoded bytes into an
uint256.
- Decodes SCALE-encoded bytes into an
function decodeAt(bytes data, uint256 offset) internal pure returns (uint256)- Decodes an
uint256at the specified offset.
- Decodes an
function toLittleEndian(uint256 value) internal pure returns (bytes32)- Converts an
uint256to little-endian bytes32
- Converts an