/// <summary>
 /// Constructs a new instance of <see cref="Node"/>.
 /// </summary>
 /// <param name="dataSet">
 /// The data set the node is contained within.
 /// </param>
 /// <param name="offset">
 /// The offset in the data structure to the node.
 /// </param>
 /// <param name="reader">
 /// Reader connected to the source data structure and positioned to
 /// start reading.
 /// </param>
 internal Node(
     IStreamDataSet dataSet,
     int offset,
     BinaryReader reader)
     : base(dataSet, offset, reader)
 {
     _pool     = dataSet.Pool;
     _position = reader.BaseStream.Position;
 }
Example #2
0
 /// <summary>
 /// Constructs a new instance of the <see cref="Profile"/>.
 /// </summary>
 /// <param name="dataSet">
 /// The data set whose profile list the profile will be contained
 /// within.
 /// </param>
 /// <param name="offset">
 /// The offset position in the data structure to the profile.
 /// </param>
 /// <param name="reader">
 /// Reader connected to the source data structure and positioned to
 /// start reading.
 /// </param>
 internal Profile(
     IStreamDataSet dataSet,
     int offset,
     BinaryReader reader)
     : base(dataSet, offset, reader)
 {
     _pool = dataSet.Pool;
     _valueIndexesCount     = reader.ReadInt32();
     _signatureIndexesCount = reader.ReadInt32();
     _position = reader.BaseStream.Position;
 }
Example #3
0
 /// <summary>
 /// Constructs a new instance of <see cref="NodeV31"/>.
 /// </summary>
 /// <param name="dataSet">
 /// The data set the node is contained within.
 /// </param>
 /// <param name="offset">
 /// The offset in the data structure to the node.
 /// </param>
 /// <param name="reader">
 /// Reader connected to the source data structure and positioned to
 /// start reading.
 /// </param>
 internal NodeV31(
     IStreamDataSet dataSet,
     int offset,
     BinaryReader reader)
     : base(dataSet, offset, reader)
 {
     _rankedSignatureCount = reader.ReadInt32();
     _children             = NodeFactoryShared.ReadNodeIndexesV31(
         (FiftyOne.Foundation.Mobile.Detection.Entities.DataSet)dataSet,
         reader,
         (int)((long)offset + reader.BaseStream.Position - this._nodeStartStreamPosition),
         (int)_childrenCount);
     _position = reader.BaseStream.Position;
 }