示例#1
0
        /// <summary>
        /// Used by the constructor to read the variable length list of child
        /// indexes that contain numeric values.
        /// </summary>
        /// <param name="dataSet">
        /// The data set the node is contained within
        /// </param>
        /// <param name="reader">
        /// Reader connected to the source data structure and positioned to start reading
        /// </param>
        /// <param name="count">
        /// The number of node indexes that need to be read.
        /// </param>
        /// <returns></returns>
        protected NodeNumericIndex[] ReadNodeNumericIndexes(Entities.DataSet dataSet, BinaryReader reader, short count)
        {
            var array = new NodeNumericIndex[count];

            for (int i = 0; i < array.Length; i++)
            {
                array[i] = new NodeNumericIndex(dataSet, reader.ReadInt16(), reader.ReadInt32());
            }
            return(array);
        }
示例#2
0
 /// <summary>
 /// Used by the constructor to read the variable length list of child
 /// node indexes associated with the node. Returns node indexes from V32
 /// data format.
 /// </summary>
 /// <param name="dataSet">
 /// The data set the node is contained within
 /// </param>
 /// <param name="reader">
 /// Reader connected to the source data structure and positioned to start reading
 /// </param>
 /// <param name="offset">
 /// The offset in the data structure to the node
 /// </param>
 /// <param name="count">
 /// The number of node indexes that need to be read.
 /// </param>
 /// <returns>An array of child node indexes for the node</returns>
 protected override NodeIndex[] ReadNodeIndexes(Entities.DataSet dataSet, BinaryReader reader, int offset, int count)
 {
     return(NodeFactoryShared.ReadNodeIndexesV32(dataSet, reader, offset, count));
 }
 /// <summary>
 /// Constructs a new <see cref="Entities.Stream.NodeV31"/> entity from the offset provided.
 /// </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>
 /// <returns>A new <see cref="Entities.Node"/> entity from the data set</returns>
 protected override Entities.Node Construct(Entities.DataSet dataSet, int offset, Reader reader)
 {
     return(new Entities.Stream.NodeV31((DataSet)dataSet, offset, reader));
 }