File: src/Scale/Unsigned/U32.sol
U32
Kind: library
ABI Surface
Errors
error InvalidU32Length()
Function Surface
function encode(uint32 value) internal pure returns (bytes)- Encodes an
uint32into SCALE format (4-byte little-endian).
- Encodes an
function encodedSizeAt(bytes data, uint256 offset) internal pure returns (uint256)- Returns the number of bytes that a
uint32would occupy when SCALE-encoded.
- Returns the number of bytes that a
function decode(bytes data) internal pure returns (uint32)- Decodes SCALE-encoded bytes into an
uint32.
- Decodes SCALE-encoded bytes into an
function decodeAt(bytes data, uint256 offset) internal pure returns (uint32)- Decodes an
uint32at the specified offset.
- Decodes an
function toLittleEndian(uint32 value) internal pure returns (bytes4)- Converts an
uint32to little-endian bytes4
- Converts an