Example #1
0
 /// <summary>
 /// Constructs a new instance of <see cref="SignatureV31"/>.
 /// </summary>
 /// <param name="dataSet">
 /// The data set the signature is contained within.
 /// </param>
 /// <param name="index">
 /// The index in the data structure to the signature.
 /// </param>
 /// <param name="reader">
 /// Reader connected to the source data structure and positioned to
 /// start reading.
 /// </param>
 internal SignatureV31(
     IDeviceDetectionDataSet dataSet,
     int index,
     Reader reader)
     : base(dataSet, index, reader)
 {
     _nodeOffsets = ReadOffsets(dataSet, reader, dataSet.SignatureNodesCount);
 }
Example #2
0
 /// <summary>
 /// Constructs a new instance of <see cref="Signature"/>.
 /// </summary>
 /// <param name="dataSet">
 /// The data set the signature is contained within.
 /// </param>
 /// <param name="index">
 /// The index in the data structure to the signature.
 /// </param>
 /// <param name="reader">
 /// Reader connected to the source data structure and positioned to
 /// start reading.
 /// </param>
 internal Signature(
     IDeviceDetectionDataSet dataSet,
     int index,
     Reader reader)
     : base(dataSet, index)
 {
     ProfileOffsets = ReadOffsets(dataSet, reader, dataSet.SignatureProfilesCount);
 }
 /// <summary>
 /// Constructs a new instance of <see cref="SignatureV32"/>.
 /// </summary>
 /// <param name="dataSet">
 /// The data set the signature is contained within.
 /// </param>
 /// <param name="index">
 /// The index in the data structure to the signature.
 /// </param>
 /// <param name="reader">
 /// Reader connected to the source data structure and positioned to
 /// start reading.
 /// </param>
 internal SignatureV32(
     IDeviceDetectionDataSet dataSet,
     int index,
     Reader reader)
     : base(dataSet, index, reader)
 {
     NodeCount            = reader.ReadByte();
     FirstNodeOffsetIndex = reader.ReadInt32();
     _rank = reader.ReadInt32();
     Flags = reader.ReadByte();
 }