> For the complete documentation index, see [llms.txt](https://docs.dragonswap.app/dragonswap/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dragonswap.app/dragonswap/resources/developer-resources/smart-contracts/dragonswapv2/periphery/libraries/byteslib.md).

# BytesLib

### Functions[​](https://docs.uniswap.org/contracts/v3/reference/periphery/libraries/BytesLib#functions) <a href="#functions" id="functions"></a>

#### slice[​](https://docs.uniswap.org/contracts/v3/reference/periphery/libraries/BytesLib#slice) <a href="#slice" id="slice"></a>

```solidity
  function slice(
  ) internal returns (bytes)
```

#### toAddress[​](https://docs.uniswap.org/contracts/v3/reference/periphery/libraries/BytesLib#toaddress) <a href="#toaddress" id="toaddress"></a>

```solidity
  function toAddress(
  ) internal returns (address)
```

#### toUint24[​](https://docs.uniswap.org/contracts/v3/reference/periphery/libraries/BytesLib#touint24) <a href="#touint24" id="touint24"></a>

```solidity
  function toUint24(
  ) internal returns (uint24)

```
