In this episode, we look at 2 functions to encode and decode a bitmask for a set of configuration flags. This is a great way to efficiently store user or app settings. As always, the code for this snippet can be found here:
https://codepen.io/walpolea/pen/WNNwaBq?editors=0012
Informações
- Podcast
- Publicado16 de outubro de 2019 às 13:54 UTC
- Duração22min
- Temporada1
- Episódio11
- ClassificaçãoLivre