BytesLib

Functions

slice

function slice(bytes memory _bytes, uint256 _start, uint256 _length) internal pure returns (bytes memory);

toAddress

function toAddress(bytes memory _bytes, uint256 _start) internal pure returns (address addr);

toBool

function toBool(bytes memory _bytes, uint256 _start) internal pure returns (bool);

toAddressAddressBoolUint128Uint128

function toAddressAddressBoolUint128Uint128(bytes memory _bytes)
    internal
    pure
    returns (address addr1, address addr2, bool bool_, uint128 amount1, uint128 amount2);

Errors

BytesLibToBoolOutOfBounds

error BytesLibToBoolOutOfBounds();

BytesLibToAddressOutOfBounds

error BytesLibToAddressOutOfBounds();

BytesLibSliceOverflow

error BytesLibSliceOverflow();

BytesLibSliceOutOfBounds

error BytesLibSliceOutOfBounds();

BytesLibInvalidLength

error BytesLibInvalidLength(uint256 inputLength, uint256 expectedLength);

Last updated