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