Skip to main content

DirtyUint64

DirtyUint64

DirtyUint64Error

error DirtyUint64Error(uint256 errorCode)

toDirtyUnsafe

function toDirtyUnsafe(uint64 cleanUint) internal pure returns (uint64 dirtyUint)

toDirty

function toDirty(uint64 cleanUint) internal pure returns (uint64 dirtyUint)

toClean

function toClean(uint64 dirtyUint) internal pure returns (uint64 cleanUint)

addClean

function addClean(uint64 current, uint64 cleanUint) internal pure returns (uint64)

addDirty

function addDirty(uint64 current, uint64 dirtyUint) internal pure returns (uint64)

subClean

function subClean(uint64 current, uint64 cleanUint) internal pure returns (uint64 ret)

subDirty

function subDirty(uint64 current, uint64 dirtyUint) internal pure returns (uint64 ret)

sumPackedUnsafe

function sumPackedUnsafe(uint256 packed, uint256 from, uint256 to) internal pure returns (uint64 ret)