It would be interesting to cite real-life use cases in the next episodes. Great video though
@IAmTimCoreyАй бұрын
Thanks!
@timothytorpy4837Ай бұрын
Nice explanation:)
@IAmTimCoreyАй бұрын
Thanks!
@adam-xt8teАй бұрын
I use BitArray
@IAmTimCoreyАй бұрын
👍
@xavierbatlle1828Ай бұрын
Easy! 😉
@IAmTimCoreyАй бұрын
Great!
@princefowzanАй бұрын
What is the point of storing binary values, what is the real world use of it? ☺ ☺
@adam-xt8teАй бұрын
My example: Clients list with pagination. Changing page causes load another set of data. There's column with checkboxes used for selecting clients. BitArray helped me caching selections low cost.
@IAmTimCoreyАй бұрын
Anything where you need high efficiency will be a potential candidate. For instance, using an Int32 to store the equivalent of 32 boolean values at once. Unity uses this technique when identifying layers. Each layer is a separate flag. It is incredibly efficient compared to 32 separate variables.
@kewqieАй бұрын
Another case is when using bit flags, easier to see the values as 0001, 0010, 0100, 1000... instead of 1, 2, 4, 16..., especially when combining them, 1011 is easier to understand than 19.