Skip to content

Commit e81ca3c

Browse files
committed
chore: update generated API file and format test code
- Regenerate pkg.generated.mbti with latest API changes - Format zip_wbtest.mbt (linter auto-format)
1 parent f205cf3 commit e81ca3c

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

src/pkg.generated.mbti

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ pub fn crc32(FixedArray[Byte]) -> UInt
1010

1111
pub 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+
1317
pub fn deflate_sync(FixedArray[Byte], opts? : DeflateOptions) -> FixedArray[Byte]
1418

1519
pub 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
}
8489
pub impl Eq for FzipErrorCode
8590
pub impl Show for FzipErrorCode
8691

8792
pub(all) struct GunzipOptions {
8893
out : FixedArray[Byte]?
8994
dictionary : FixedArray[Byte]?
95+
max_output_size : Int
96+
max_input_size : Int
9097
}
9198
pub fn GunzipOptions::default() -> Self
9299
pub impl Show for GunzipOptions
@@ -118,6 +125,8 @@ pub fn GzipStream::push(Self, FixedArray[Byte], final_? : Bool) -> Unit
118125
pub(all) struct InflateOptions {
119126
out : FixedArray[Byte]?
120127
dictionary : FixedArray[Byte]?
128+
max_output_size : Int
129+
max_input_size : Int
121130
}
122131
pub fn InflateOptions::default() -> Self
123132
pub impl Show for InflateOptions
@@ -140,6 +149,8 @@ pub impl Show for UnzipFileInfo
140149
pub(all) struct UnzlibOptions {
141150
out : FixedArray[Byte]?
142151
dictionary : FixedArray[Byte]?
152+
max_output_size : Int
153+
max_input_size : Int
143154
}
144155
pub fn UnzlibOptions::default() -> Self
145156
pub impl Show for UnzlibOptions

src/zip_wbtest.mbt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,3 @@ test "zip - normal compression ratio accepted" {
131131
assert_eq(result.length(), 1)
132132
assert_eq(result[0].1.length(), 1000)
133133
}
134-

0 commit comments

Comments
 (0)