You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/references/api/bindings/miniz.md
+15-1Lines changed: 15 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,7 +85,7 @@ Applies [INFLATE](https://en.wikipedia.org/wiki/Deflate#Decoder/decompressor) to
85
85
86
86
## ZipFileReader
87
87
88
-
Created by [new_reader](#new_reader). You can use this to get information about the files within a ZIP archive or to extract them (in-memory).
88
+
Created by [new_reader](#new_reader) or [new_reader_memory](#new_reader_memory). You can use this to get information about the files within a ZIP archive or to extract them (in-memory).
89
89
90
90
### extract
91
91
@@ -389,6 +389,20 @@ Creates a new ZIP file reader for the given `fileSystemPath`. The `flags` passed
389
389
</Returns>
390
390
</Function>
391
391
392
+
### new_reader_memory
393
+
394
+
Creates a new ZIP file reader for the given `fileContents`. The `flags` passed to `miniz` can control the way that the archive is read.
395
+
396
+
<Function>
397
+
<Parameters>
398
+
<Parametername="fileContents"type="string"/>
399
+
<Parametername="flags"type="number"optional/>
400
+
</Parameters>
401
+
<Returns>
402
+
<Returnname="reader"type="ZipFileReader"/>
403
+
</Returns>
404
+
</Function>
405
+
392
406
### new_writer
393
407
394
408
Creates a new ZIP file writer for the given `fileSystemPath`. The `flags` passed to `miniz` can control the way that the archive is written.
0 commit comments