Skip to content

Instantly share code, notes, and snippets.

View Benjamin0000's full-sized avatar
🎯
Focusing

Benjamin Odiowa Benjamin0000

🎯
Focusing
View GitHub Profile
@Benjamin0000
Benjamin0000 / .deps...npm...@layerzerolabs...solidity-examples...contracts...libraries...BytesLib.sol
Created October 10, 2025 17:07
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=undefined&optimize=undefined&runs=undefined&gist=
// SPDX-License-Identifier: Unlicense
/*
* @title Solidity Bytes Arrays Utils
* @author Gonçalo Sá <goncalo.sa@consensys.net>
*
* @dev Bytes tightly packed arrays utility library for ethereum contracts written in Solidity.
* The library lets you concatenate, slice and type cast bytes arrays both in memory and storage.
*/
pragma solidity >=0.8.0 <0.9.0;