public OldSheetRecord(RecordInputStream in1) { field_1_position_of_BOF = in1.ReadInt(); field_2_visibility = in1.ReadUByte(); field_3_type = in1.ReadUByte(); int field_4_sheetname_length = in1.ReadUByte(); field_5_sheetname = new byte[field_4_sheetname_length]; in1.Read(field_5_sheetname, 0, field_4_sheetname_length); }
/** * @param in the RecordInputstream to read the record from */ public OldStringRecord(RecordInputStream in1) { sid = in1.Sid; if (in1.Sid == biff2_sid) { field_1_string_len = (short)in1.ReadUByte(); } else { field_1_string_len = in1.ReadShort(); } // Can only decode properly later when you know the codepage field_2_bytes = new byte[field_1_string_len]; in1.Read(field_2_bytes, 0, field_1_string_len); }
/** * @param in the RecordInputstream to read the record from */ public OldLabelRecord(RecordInputStream in1) : base(in1, in1.Sid == biff2_sid) { if (IsBiff2) { field_4_string_len = (short)in1.ReadUByte(); } else { field_4_string_len = in1.ReadShort(); } // Can only decode properly later when you know the codepage field_5_bytes = new byte[field_4_string_len]; in1.Read(field_5_bytes, 0, field_4_string_len); if (in1.Remaining > 0) { logger.Log(POILogger.INFO, "LabelRecord data remains: " + in1.Remaining + " : " + HexDump.ToHex(in1.ReadRemainder()) ); } }