File: src/Scale/Signed/I8.sol
I8
Kind: library
ABI Surface
Errors
error OffsetOutOfBounds()
Function Surface
function encode(int8 value) internal pure returns (bytes)- Encodes an
int8into SCALE format (1-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
int8would occupy when SCALE-encoded.
- Returns the number of bytes that a
function decode(bytes data) internal pure returns (int8)- Decodes SCALE-encoded bytes into an
int8.
- Decodes SCALE-encoded bytes into an
function decodeAt(bytes data, uint256 offset) internal pure returns (int8)- Decodes an
int8at the specified offset.
- Decodes an
function toLittleEndian(int8 value) internal pure returns (bytes1)- Converts an int8 to little-endian bytes1 (two's complement)