fix(Zip): implement ZipArchiveInfo64::getVersionMadeBy() and ZipArchiveInfo64::getRequiredVersion() methods

This commit is contained in:
nyashbox 2024-12-01 00:30:11 +02:00
parent d8a423c832
commit 3d7c030c1e
No known key found for this signature in database
GPG Key ID: B40E74A291D1DFA4

View File

@ -134,10 +134,10 @@ public:
~ZipArchiveInfo64();
/// Destroys the ZipArchiveInfo64.
void getVersionMadeBy(int& major, int& minor);
Poco::UInt16 getVersionMadeBy() const;
/// The ZIP version used to create the file
void getRequiredVersion(int& major, int& minor);
Poco::UInt16 getRequiredVersion() const;
/// The minimum version required to extract the data
Poco::UInt32 getDiskNumber() const;
@ -232,6 +232,15 @@ private:
// inlines
//
inline Poco::UInt16 ZipArchiveInfo64::getVersionMadeBy() const
{
return ZipUtil::get16BitValue(_rawInfo, VERSIONMADEBY_POS);
}
inline Poco::UInt16 ZipArchiveInfo64::getRequiredVersion() const
{
return ZipUtil::get16BitValue(_rawInfo, VERSION_NEEDED_POS);
}
inline Poco::UInt16 ZipArchiveInfo::getDiskNumber() const
{