deal with default values in readStructPointer