private bool readDirEntryOk(TiffDirEntry[] dir, short dircount)
{
int entrySize = sizeof(short) * 2 + sizeof(int) * 2;
int totalSize = entrySize * dircount;
byte[] bytes = new byte[totalSize];
bool res = readOK(bytes, totalSize);
if (res)
readDirEntry(dir, dircount, bytes, 0);
return res;
}