text: public BOFRecord(RecordInputStream in) {field_1_version  = in.readShort();field_2_type     = in.readShort();if (in.remaining() >= 2) {field_3_build = in.readShort();}if (in.remaining() >= 2) {field_4_year = in.readShort();}if (in.remaining() >= 4) {field_5_history  = in.readInt();}if (in.remaining() >= 4) {field_6_rversion = in.readInt();}}