text: public BOFRecord(RecordInputStream in1){field_1_version = in1.ReadShort();field_2_type = in1.ReadShort();if (in1.Remaining >= 2){field_3_build = in1.ReadShort();}if (in1.Remaining >= 2){field_4_year = in1.ReadShort();}if (in1.Remaining >= 4){field_5_history = in1.ReadInt();}if (in1.Remaining >= 4){field_6_rversion = in1.ReadInt();}}