mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:57:46 +00:00
unzip: Add option to list files of an archive
This commit is contained in:
parent
a9a62ad8c9
commit
dc65a2f2b8
3 changed files with 28 additions and 3 deletions
|
@ -253,7 +253,7 @@ struct ZipMember {
|
|||
class Zip {
|
||||
public:
|
||||
static Optional<Zip> try_create(ReadonlyBytes buffer);
|
||||
ErrorOr<bool> for_each_member(Function<IterationDecision(ZipMember const&)>);
|
||||
ErrorOr<bool> for_each_member(Function<ErrorOr<IterationDecision>(ZipMember const&)>);
|
||||
|
||||
private:
|
||||
static bool find_end_of_central_directory_offset(ReadonlyBytes, size_t& offset);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue