summaryrefslogtreecommitdiffstats
path: root/lzip_index.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-10-07 08:15:01 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-10-07 08:15:01 +0000
commit1dde52eb2bcedeced2ba3b13d0a07b3d591fc7c2 (patch)
treef653cba159a2e0f729d70ec026272882cd8ca123 /lzip_index.h
parentReleasing debian version 1.24-2. (diff)
downloadlziprecover-1dde52eb2bcedeced2ba3b13d0a07b3d591fc7c2.tar.xz
lziprecover-1dde52eb2bcedeced2ba3b13d0a07b3d591fc7c2.zip
Merging upstream version 1.25~pre1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'lzip_index.h')
-rw-r--r--lzip_index.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/lzip_index.h b/lzip_index.h
index 95e277d..9c8bd2b 100644
--- a/lzip_index.h
+++ b/lzip_index.h
@@ -28,8 +28,8 @@ class Lzip_index
: dblock( dpos, dsize ), mblock( mpos, msize ),
dictionary_size( dict_size ) {}
- bool operator==( const Member & m ) const { return ( mblock == m.mblock ); }
- bool operator!=( const Member & m ) const { return ( mblock != m.mblock ); }
+ bool operator==( const Member & m ) const { return mblock == m.mblock; }
+ bool operator!=( const Member & m ) const { return mblock != m.mblock; }
};
// member_vector only contains members with a valid header.
@@ -43,8 +43,7 @@ class Lzip_index
bool check_header( const Lzip_header & header, const bool ignore_bad_ds );
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 = true );
+ bool read_header( const int fd, Lzip_header & header, const long long pos );
bool read_trailer( const int fd, Lzip_trailer & trailer,
const long long pos );
bool skip_gap( const int fd, unsigned long long & pos,
@@ -94,3 +93,6 @@ public:
unsigned dictionary_size( const long i ) const
{ return member_vector[i].dictionary_size; }
};
+
+int seek_read( const int fd, uint8_t * const buf, const int size,
+ const long long pos );