Bit Masking | EVM Storage 2
Smart Contract Programmer
Some bit masking tricks (written in Yul) that we will need to read and write state variables that are packed into a single slot.
0:00 Intro 3:13 Bit masking 16 bits of 1s 5:53 All 0s except 16 bits of 1s in the middle 8:03 All 1s except 16 bits of zeros in the middle
Code https://solidity-by-example.org/evm/storage/
Take a course https://www.smartcontract.engineer/
Remix https://remix.ethereum.org
#Solidity #SmartContract #Ethereum #スマートコントラクト
Follow https://odysee.com/@SmartContractProgrammer:8 https://twitter.com/ProgrammerSmart https://discord.gg/bt8FK2wkcW https://t.me/smartcontractprogrammer https://smartcontractprogrammer.com ... https://www.youtube.com/watch?v=luCjY2IQEuw
2024-04-09
0.0 LBC
Copyrighted (contact publisher)
25999811 Bytes