Skip to content

SafeCast

Description

Source: contracts/SafeCast.sol

Internal Functions

toInt256

Source

Details

Signature

toInt256(uint256 value) pure returns (int256)

Visibility

internal

State Mutability

pure

Requires

toUint128

Source

Details

Signature

toUint128(uint256 value) pure returns (uint128)

Visibility

internal

State Mutability

pure

Requires

toUint16

Source

Details

Signature

toUint16(uint256 value) pure returns (uint16)

Visibility

internal

State Mutability

pure

Requires

toUint256

Source

Details

Signature

toUint256(int256 value) pure returns (uint256)

Visibility

internal

State Mutability

pure

Requires

toUint32

Source

Details

Signature

toUint32(uint256 value) pure returns (uint32)

Visibility

internal

State Mutability

pure

Requires

toUint64

Source

Details

Signature

toUint64(uint256 value) pure returns (uint64)

Visibility

internal

State Mutability

pure

Requires

toUint8

Source

Details

Signature

toUint8(uint256 value) pure returns (uint8)

Visibility

internal

State Mutability

pure

Requires