Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Converts a byte array to a list of bits
ResourceFunction["ByteArrayToBitList"][ba] converts ByteArray ba to a list of bits. |
Create a byte array:
In[1]:= |
Out[1]= |
Convert to individual bits:
In[2]:= |
Out[2]= |
Compare the number of bytes needed to represent the expressions:
In[3]:= |
Out[3]= |
For larger bit arrays the relative memory expansion does approach a factor of 64:
In[4]:= |
Out[6]= |
This work is licensed under a Creative Commons Attribution 4.0 International License