It would be interesting to cite real-life use cases in the next episodes. Great video though
@IAmTimCorey2 ай бұрын
Thanks!
@timothytorpy48372 ай бұрын
Nice explanation:)
@IAmTimCorey2 ай бұрын
Thanks!
@xavierbatlle18282 ай бұрын
Easy! 😉
@IAmTimCorey2 ай бұрын
Great!
@adam-xt8te2 ай бұрын
I use BitArray
@IAmTimCorey2 ай бұрын
👍
@princefowzan2 ай бұрын
What is the point of storing binary values, what is the real world use of it? ☺ ☺
@adam-xt8te2 ай бұрын
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.
@IAmTimCorey2 ай бұрын
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.
@subbyraccoon2 ай бұрын
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.