Пример #1
0
 /// <summary>
 /// Reads the BIFF record header from the base stream.
 /// </summary>
 /// <param name="reader">The reader.</param>
 public virtual void Read(BinaryReader reader)
 {
     this.RecordType = (BiffRecordNumber)reader.ReadInt16();
     this.DataLength = reader.ReadInt16();
     this.DataBuffer = reader.ReadBytes(this.DataLength);
 }
Пример #2
0
 public void FromByteArray(byte[] buffer)
 {
     this.RecordType = (BiffRecordNumber)BitConverter.ToInt16(buffer, 0);
     this.DataLength = BitConverter.ToInt16(buffer, 2);
 }