void EndRW() /* finish current reading or writing operation */ { if (WriteActive || ReadActive) { if (Io704.Config.LogIO != null) { Io704.LogIO.WriteLine("Printer: record with length {0} written", WRecord.Count); } while (WRecord.Count < 24) { WRecord.Add(0); } byte[] CBN = CBNConverter.ToCBN(WRecord.ToArray()); if (HollerithConverter.CBNToBCD(CBN, 0, 72, out byte[] BCD) > 0)
void EndRW() /* finish current reading or writing operation */ { if (WriteActive) { if (Io704.Config.LogIO != null) { Io704.LogIO.WriteLine("Punch: record with length {0} written", WRecord.Count); } while (WRecord.Count < 24) { WRecord.Add(0); } byte[] CBN = CBNConverter.ToCBN(WRecord.ToArray()); f.WriteRecord(true, CBN); WriteActive = false; WRecord.Clear(); } }