summaryrefslogtreecommitdiff
path: root/include/bb_archive.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/bb_archive.h')
-rw-r--r--include/bb_archive.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/bb_archive.h b/include/bb_archive.h
index 561dd0c..9b1db5b 100644
--- a/include/bb_archive.h
+++ b/include/bb_archive.h
@@ -235,6 +235,12 @@ typedef struct transformer_state_t {
off_t bytes_in; /* used in unzip code only: needs to know packed size */
uint32_t crc32;
time_t mtime; /* gunzip code may set this on exit */
+
+ union { /* if we read magic, it's saved here */
+ uint8_t b[8];
+ uint16_t b16[4];
+ uint32_t b32[2];
+ } magic;
} transformer_state_t;
void init_transformer_state(transformer_state_t *xstate) FAST_FUNC;