mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-12 18:20:26 +01:00
Merge pull request #4793 from nyashbox/fix/implement_zip_methods
Implement ZipArchiveInfo::getVersionMadeBy() and ZipArchiveInfo::getRequiredVersion() methods
This commit is contained in:
commit
250deee751
@ -134,10 +134,10 @@ public:
|
|||||||
~ZipArchiveInfo64();
|
~ZipArchiveInfo64();
|
||||||
/// Destroys the ZipArchiveInfo64.
|
/// Destroys the ZipArchiveInfo64.
|
||||||
|
|
||||||
void getVersionMadeBy(int& major, int& minor);
|
Poco::UInt16 getVersionMadeBy() const;
|
||||||
/// The ZIP version used to create the file
|
/// 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
|
/// The minimum version required to extract the data
|
||||||
|
|
||||||
Poco::UInt32 getDiskNumber() const;
|
Poco::UInt32 getDiskNumber() const;
|
||||||
@ -232,6 +232,15 @@ private:
|
|||||||
// inlines
|
// 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
|
inline Poco::UInt16 ZipArchiveInfo::getDiskNumber() const
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user