| 1738 | } |
| 1739 | |
| 1740 | int Write_Zip64EndOfCentralDirectoryLocator(zip64_internal* zi, ZPOS64_T zip64eocd_pos_inzip) |
| 1741 | { |
| 1742 | int err = ZIP_OK; |
| 1743 | ZPOS64_T pos = zip64eocd_pos_inzip - zi->add_position_when_writing_offset; |
| 1744 | |
| 1745 | err = zip64local_putValue(&zi->z_filefunc, zi->filestream, (uLong)ZIP64ENDLOCHEADERMAGIC, 4); |
| 1746 | |
| 1747 | /*num disks*/ |
| 1748 | if (err == ZIP_OK) /* number of the disk with the start of the central directory */ |
| 1749 | err = zip64local_putValue(&zi->z_filefunc, zi->filestream, (uLong)0, 4); |
| 1750 | |
| 1751 | /*relative offset*/ |
| 1752 | if (err == ZIP_OK) /* Relative offset to the Zip64EndOfCentralDirectory */ |
| 1753 | err = zip64local_putValue(&zi->z_filefunc, zi->filestream, pos, 8); |
| 1754 | |
| 1755 | /*total disks*/ /* Do not support spawning of disk so always say 1 here*/ |
| 1756 | if (err == ZIP_OK) /* number of the disk with the start of the central directory */ |
| 1757 | err = zip64local_putValue(&zi->z_filefunc, zi->filestream, (uLong)1, 4); |
| 1758 | |
| 1759 | return err; |
| 1760 | } |
| 1761 | |
| 1762 | int Write_Zip64EndOfCentralDirectoryRecord(zip64_internal* zi, uLong size_centraldir, ZPOS64_T centraldir_pos_inzip) |
| 1763 | { |
no test coverage detected