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);
}