BitMiracle.LibTiff.Classic.Tiff.fetchDoubleArray C# (CSharp) Method

fetchDoubleArray() private method

Fetches an array of DOUBLE values.
private fetchDoubleArray ( TiffDirEntry dir, double v ) : bool
dir TiffDirEntry
v double
return bool
        private bool fetchDoubleArray(TiffDirEntry dir, double[] v)
        {
            int w = DataWidth(dir.tdir_type);
            int cc = dir.tdir_count * w;
            byte[] b = new byte [cc];
            int read = fetchData(dir, b);
            if (read != 0)
            {
                int byteOffset = 0;
                for (int i = 0; i < read / 8; i++)
                {
                    v[i] = BitConverter.ToDouble(b, byteOffset);
                    byteOffset += 8;
                }
            }

            return (read != 0);
        }
Tiff