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