Files
kaizen/_7z/_7z.h
SimoneN64 ee861bc6cf Squashed 'external/unarr/' content from commit f243d72fb3
git-subtree-dir: external/unarr
git-subtree-split: f243d72fb3fe418c26a19514609ac7167d089df4
2024-09-14 16:23:23 +02:00

48 lines
837 B
C

/* Copyright 2018 the unarr project authors (see AUTHORS file).
License: LGPLv3 */
#ifndef _7z_7z_h
#define _7z_7z_h
#include "../common/unarr-imp.h"
#include "../lzmasdk/7zTypes.h"
#ifdef HAVE_7Z
#include "../lzmasdk/7z.h"
#endif
typedef struct ar_archive_7z_s ar_archive_7z;
struct CSeekStream {
ISeekInStream super;
ar_stream *stream;
};
struct ar_archive_7z_uncomp {
bool initialized;
UInt32 folder_index;
Byte *buffer;
size_t buffer_size;
size_t offset;
size_t bytes_left;
};
struct ar_archive_7z_s {
ar_archive super;
struct CSeekStream in_stream;
#ifdef HAVE_7Z
CLookToRead2 look_stream;
CSzArEx data;
#endif
char *entry_name;
struct ar_archive_7z_uncomp uncomp;
};
#ifndef USE_7Z_CRC32
UInt32 Z7_FASTCALL CrcCalc(const void *data, size_t size);
#endif
#endif