File: src/Scale/Signed/I128.sol
I128
Kind: library
ABI Surface
Errors
error OffsetOutOfBounds()
Function Surface
function encode(int128 value) internal pure returns (bytes)- Encodes an
int128into SCALE format (16-byte two's-complement little-endian).
- Encodes an
function encodedSizeAt(bytes data, uint256 offset) internal pure returns (uint256)- Returns the number of bytes that a
int128would occupy when SCALE-encoded.
- Returns the number of bytes that a
function decode(bytes data) internal pure returns (int128)- Decodes SCALE-encoded bytes into an
int128.
- Decodes SCALE-encoded bytes into an
function decodeAt(bytes data, uint256 offset) internal pure returns (int128)- Decodes an
int128at the specified offset.
- Decodes an
function toLittleEndian(int128 value) internal pure returns (bytes16)- Converts an int128 to little-endian bytes16 (two's complement)