binary blobs to C structures