Exemple #1
0
 /// <summary>
 /// Creates an instance of the <see cref="Record"/> class.
 /// </summary>
 /// <param name="header">The record header.</param>
 /// <param name="body">The record body.</param>
 public Record(RecordHeader header, RecordBody body)
 {
     Header = header;
     Body   = body;
 }
Exemple #2
0
 /// <summary>
 /// Creates an instance of <see cref="Record"/>.
 /// </summary>
 /// <param name="header">The record header.</param>
 /// <param name="body">The record body.</param>
 public Record(RecordHeader header, RecordBody body)
 {
     Header = header;
     Body = body;
 }
Exemple #3
0
 /// <summary>
 /// Jumps in the file to the location of the record with the given header.
 /// </summary>
 /// <param name="header">The header to seek to.</param>
 public void Seek(RecordHeader header)
 {
     m_fileReader.BaseStream.Seek(header.Position, SeekOrigin.Begin);
 }
Exemple #4
0
 /// <summary>
 /// Jumps in the file to the location of the record with the given header.
 /// </summary>
 /// <param name="header">The header to seek to.</param>
 public void Seek(RecordHeader header)
 {
     m_fileReader.BaseStream.Seek(header.Position, SeekOrigin.Begin);
 }