aboutsummaryrefslogtreecommitdiff
path: root/vendor/zune-inflate/src/gzip_constants.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/zune-inflate/src/gzip_constants.rs')
-rw-r--r--vendor/zune-inflate/src/gzip_constants.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/vendor/zune-inflate/src/gzip_constants.rs b/vendor/zune-inflate/src/gzip_constants.rs
new file mode 100644
index 0000000..6028d47
--- /dev/null
+++ b/vendor/zune-inflate/src/gzip_constants.rs
@@ -0,0 +1,13 @@
+#![cfg(feature = "gzip")]
+pub const GZIP_ID1: u8 = 0x1F;
+pub const GZIP_ID2: u8 = 0x8B;
+pub const GZIP_CM_DEFLATE: u8 = 8;
+
+pub const GZIP_FRESERVED: u8 = 0xE0;
+pub const GZIP_FEXTRA: u8 = 0x04;
+
+pub const GZIP_FOOTER_SIZE: usize = 8;
+
+pub const GZIP_FHCRC: u8 = 0x02;
+pub const GZIP_FNAME: u8 = 0x08;
+pub const GZIP_FCOMMENT: u8 = 0x10;