Working with arrays in Yul

Поделиться
HTML-код
  • Опубликовано: 20 дек 2024

Комментарии • 2

  • @RiteshVerma-c3t
    @RiteshVerma-c3t Год назад +1

    How can we do deep copy of array in Yul ? (Not just the pointer
    )

    • @Reanblock
      @Reanblock  Год назад

      Assuming the array is already in memory then use mload to copy the entire array contents to the stack and then mstore that value starting at the current free memory pointer (remember to update the free memory pointer at the end). Its worth testing this out using Remix, of course!