Trying to access struct members knowing the data format