Beispiel #1
0
 /// <summary>
 /// Registers a converter for a <see cref="RecordType"/> directly.
 /// Useful for special-casing odd records that cannot be described with supported meta-data.
 /// </summary>
 /// <param name="recordType">The recordType to register.</param>
 /// <param name="converter">A converter delegate that will handle conversions</param>
 public void RegisterRecordConverter(RecordType recordType, Converter <UnknownRecord, StdfRecord> converter)
 {
     _Converters.Add(recordType, converter);
 }
Beispiel #2
0
 /// <summary>
 /// Constructs an unknown record
 /// </summary>
 /// <param name="recordType">The <see cref="RecordType"/> for the record</param>
 /// <param name="content">The original byte content of the record</param>
 /// <param name="endian">The endian-ness of <paramref name="content"/></param>
 public UnknownRecord(RecordType recordType, byte[] content, Endian endian)
 {
     this._RecordType = recordType;
     this._Content    = content;
     this._Endian     = endian;
 }
Beispiel #3
0
 /// <summary>
 /// Constructs a new record header
 /// </summary>
 public RecordHeader(ushort length, RecordType recordType)
 {
     this._Length     = length;
     this._RecordType = recordType;
 }