summaryrefslogtreecommitdiffstats
path: root/lzip_index.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-12-04 03:34:45 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-12-04 03:34:45 +0000
commitb1aab60d515050a32bc5764d0106aa01c10a4c0d (patch)
treef8704120bc97b8080b0d88a478dbaf665cb5145a /lzip_index.h
parentReleasing debian version 1.24.1-2. (diff)
downloadlzip-b1aab60d515050a32bc5764d0106aa01c10a4c0d.tar.xz
lzip-b1aab60d515050a32bc5764d0106aa01c10a4c0d.zip
Merging upstream version 1.25~rc1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'lzip_index.h')
-rw-r--r--lzip_index.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/lzip_index.h b/lzip_index.h
index 928a7c7..8d2ed1a 100644
--- a/lzip_index.h
+++ b/lzip_index.h
@@ -59,8 +59,7 @@ class Lzip_index
bool check_header( const Lzip_header & header );
void set_errno_error( const char * const msg );
void set_num_error( const char * const msg, unsigned long long num );
- bool read_header( const int fd, Lzip_header & header, const long long pos,
- const bool ignore_marking );
+ bool read_header( const int fd, Lzip_header & header, const long long pos );
bool skip_trailing_data( const int fd, unsigned long long & pos,
const Cl_options & cl_opts );
@@ -72,6 +71,14 @@ public:
int retval() const { return retval_; }
unsigned dictionary_size() const { return dictionary_size_; }
+ bool multi_empty() const // multimember file with empty member(s)
+ {
+ if( member_vector.size() > 1 )
+ for( unsigned long i = 0; i < member_vector.size(); ++i )
+ if( member_vector[i].dblock.size() == 0 ) return true;
+ return false;
+ }
+
long long udata_size() const
{ if( member_vector.empty() ) return 0;
return member_vector.back().dblock.end(); }