Esempio n. 1
0
        /// <summary>
        /// Get an int from a col position
        /// </summary>
        /// <param name="item">Where to put the data</param>
        /// <param name="pos">Which column to read from, 0 indexed</param>
        public void Get(out int item, int pos)
        {
            int first;
            var data = Data[pos];

            item = CsvParse.ParseFixedInt(LineBuffer, (first = data.Start), data.End - first);
        }
Esempio n. 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="item">Where to put the data</param>
        /// <param name="pos">Which column to read from, 0 indexed</param>
        public void Get(out float item, int pos)
        {
            int first;
            var data = this.Data[pos];

            item = CsvParse.ParseFixedFloat(this.LineBuffer, (first = data.Start), data.End - first);
        }