@@ -10,6 +10,10 @@ pub fn crc32(FixedArray[Byte]) -> UInt
1010
1111pub fn decompress_sync(FixedArray[Byte], opts? : InflateOptions) -> FixedArray[Byte] raise FzipError
1212
13+ pub let default_max_input_size : Int
14+
15+ pub let default_max_output_size : Int
16+
1317pub fn deflate_sync(FixedArray[Byte], opts? : DeflateOptions) -> FixedArray[Byte]
1418
1519pub fn gunzip_sync(FixedArray[Byte], opts? : GunzipOptions) -> FixedArray[Byte] raise FzipError
@@ -80,13 +84,16 @@ pub(all) enum FzipErrorCode {
8084 StreamFinishing
8185 InvalidZipData
8286 UnknownCompressionMethod
87+ InvalidChecksum
8388}
8489pub impl Eq for FzipErrorCode
8590pub impl Show for FzipErrorCode
8691
8792pub(all) struct GunzipOptions {
8893 out : FixedArray[Byte]?
8994 dictionary : FixedArray[Byte]?
95+ max_output_size : Int
96+ max_input_size : Int
9097}
9198pub fn GunzipOptions::default() -> Self
9299pub impl Show for GunzipOptions
@@ -118,6 +125,8 @@ pub fn GzipStream::push(Self, FixedArray[Byte], final_? : Bool) -> Unit
118125pub(all) struct InflateOptions {
119126 out : FixedArray[Byte]?
120127 dictionary : FixedArray[Byte]?
128+ max_output_size : Int
129+ max_input_size : Int
121130}
122131pub fn InflateOptions::default() -> Self
123132pub impl Show for InflateOptions
@@ -140,6 +149,8 @@ pub impl Show for UnzipFileInfo
140149pub(all) struct UnzlibOptions {
141150 out : FixedArray[Byte]?
142151 dictionary : FixedArray[Byte]?
152+ max_output_size : Int
153+ max_input_size : Int
143154}
144155pub fn UnzlibOptions::default() -> Self
145156pub impl Show for UnzlibOptions
0 commit comments