Fri Mar 11 10:01:38 CET 2011
I would appreciate any advice/ideas on how to efficiently handle a large
The binary in question has a couple of protocol wrappers around it which
are no problem as the bit syntax easily copes with that. What I'm not
sure of is how to handle the data.
<<I:24, Q:24, M:16 ... repeated 63 times >>
What I have to do is extract I and Q which are 24 bit le values and end
up with another binary which is:
<<I/float, Q/float ... repeated 63 times (see below) >>
Where I and Q are now floating point numbers. I will need M in the
future, but not right now. It's a little more complicated than that
because several of the raw data binaries will go into the processed
binary which will be a multiple of 64 up to 1024.
I will also need to do the opposite, i.e. take the processed binary and
transform it back to the raw data binary.
More information about the erlang-questions