On 3/25/10 10:43 PM, Segher Boessenkool wrote:
It seems like others must have this problem of needing to force a binary blob into a struct.
Just memcpy() it from the blob to the struct. If I remember your code correctly, you copy it later anyway, so might as well do it in one step.
In two steps, because we need to copy the header first to find out how big the whole array is..
But that's a plan...