File: src/Scale/Unsigned/U128.sol
U128
Kind: library
ABI Surface
Errors
error InvalidU128Length()
Function Surface
function encode(uint128 value) internal pure returns (bytes)- Encodes an
uint128into SCALE format (16-byte little-endian).
- Encodes an
function encodedSizeAt(bytes data, uint256 offset) internal pure returns (uint256)- Returns the number of bytes that a
uint128would occupy when SCALE-encoded.
- Returns the number of bytes that a
function decode(bytes data) internal pure returns (uint128)- Decodes SCALE-encoded bytes into an
uint128.
- Decodes SCALE-encoded bytes into an
function decodeAt(bytes data, uint256 offset) internal pure returns (uint128)- Decodes an
uint128at the specified offset.
- Decodes an
function toLittleEndian(uint128 value) internal pure returns (bytes16)- Converts an
uint128to little-endian bytes16
- Converts an