/// <summary>
        /// Reads an array of values from a <see cref="BitStream"/>.
        /// </summary>
        /// <param name="bs">The <see cref="BitStream"/> to read from.</param>
        /// <param name="count">The number of values to read.</param>
        /// <returns>The array of read values.</returns>
        public static double[] ReadDoubles(this BitStream bs, int count)
        {
            var ret = new double[count];

            for (var i = 0; i < count; i++)
            {
                ret[i] = bs.ReadDouble();
            }
            return(ret);
        }
 /// <summary>
 /// Reads a 64-bit floating-point number.
 /// </summary>
 /// <param name="name">Unique name of the value to read.</param>
 /// <returns>Value read from the reader.</returns>
 public double ReadDouble(string name)
 {
     return(_reader.ReadDouble());
 }