private bool writeHeaderOK(TiffHeader header) { bool res = writeShortOK(header.tiff_magic); if (res) res = writeShortOK(header.tiff_version); if (res) res = writeIntOK((int)header.tiff_diroff); return res; }
private bool writeHeaderOK(TiffHeader header) { bool res = writeShortOK(header.tiff_magic); if (res) res = writeShortOK(header.tiff_version); if (header.tiff_version == TIFF_BIGTIFF_VERSION) { if (res) res = writeShortOK(header.tiff_offsize); if (res) res = writeShortOK(header.tiff_fill); if (res) res = writelongOK((long)header.tiff_diroff); } else { if (res) res = writeIntOK((int)header.tiff_diroff); if (res) res = writelongOK(0); } return res; }
private bool readHeaderOk(ref TiffHeader header) { bool res = readShortOK(out header.tiff_magic); if (res) res = readShortOK(out header.tiff_version); if (res) { if (header.tiff_version == TIFF_BIGTIFF_VERSION) { res = readShortOK(out header.tiff_offsize); if (res) res = readShortOK(out header.tiff_fill); if (res) res = readUlongOK(out header.tiff_diroff); } else { uint intout; res = readUIntOK(out intout); header.tiff_diroff = intout; } } return res; }
private bool readHeaderOk(ref TiffHeader header) { bool res = readShortOK(out header.tiff_magic); if (res) res = readShortOK(out header.tiff_version); if (res) res = readUIntOK(out header.tiff_diroff); return res; }