text: public static Record Create(RecordInputStream in1){switch (in1.Remaining){case 0:return Instance;case 2:return new InterfaceHdrRecord(in1);}throw new RecordFormatException("Invalid record data size: " + in1.Remaining);}