@crossbind/port-zlib 2.0.0-beta.63 → 2.0.0-beta.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -116,14 +116,14 @@ console.log((await Zlib.decompress(packed, text.length)) === text); // true
|
|
|
116
116
|
- For files, pass paths instead of bytes: mount the file into the module's filesystem (`autoMountFiles`) and read it in C++ with `fopen`. The three apps above work that way.
|
|
117
117
|
|
|
118
118
|
### More examples
|
|
119
|
-
Each one runs in your browser on [crossbind.dev/ports/zlib](https://crossbind.dev/ports/zlib/#
|
|
119
|
+
Each one runs in your browser on [crossbind.dev/ports/zlib](https://crossbind.dev/ports/zlib/#examples), next to the code shown there:
|
|
120
120
|
|
|
121
121
|
- [Write a .gz that remembers its file name](https://crossbind.dev/ports/zlib/#02-gzip): `deflateInit2` with windowBits 15 + 16 for gzip, `deflateSetHeader` for the name and date, `inflateGetHeader` to read them back.
|
|
122
122
|
- [Stream a file through gzip](https://crossbind.dev/ports/zlib/#03-stream): the `deflate()` and `inflate()` loops of zlib's `zpipe.c`, file to file in 64 KB steps, reading every member of a concatenated .gz.
|
|
123
123
|
- [Compress small messages with a preset dictionary](https://crossbind.dev/ports/zlib/#04-dictionary): raw deflate with `deflateSetDictionary` and `inflateSetDictionary`; a 59-byte message goes from 59 B to 11 B.
|
|
124
124
|
- [Checksum data in pieces](https://crossbind.dev/ports/zlib/#05-checksum): `crc32` and `adler32` as running values, and `crc32_combine` and `adler32_combine` to join pieces checksummed separately.
|
|
125
125
|
|
|
126
|
-
Setup
|
|
126
|
+
Setup for every platform: [crossbind.dev/ports/zlib](https://crossbind.dev/ports/zlib/#install). The same page has [a gzip command-line program](https://crossbind.dev/ports/zlib/#wasi-program) built with `crossbind build -p wasi -e wasi`.
|
|
127
127
|
|
|
128
128
|
## What this build includes
|
|
129
129
|
- zlib 1.3.2 from the release tarball, pinned by SHA-256, built with zlib's own CMake options at their defaults apart from `ZLIB_BUILD_TESTING=OFF` and the library type: static on every platform. On Android the archive is position-independent and goes into the libraries that use it, because the app process already holds the system's own `libz.so`, which would shadow a shared build. Its symbols are hidden there, so every library that links it keeps its copy private and calls its own.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crossbind/port-zlib",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.64",
|
|
4
4
|
"nativeVersion": "1.3.2",
|
|
5
5
|
"description": "This package provides the precompiled zlib library, built using crossbind, for easy integration into JavaScript, WebAssembly and React Native projects. It offers compression and decompression functionalities through the zlib API, ensuring high performance and cross-platform compatibility. Ideal for use in web and mobile applications.",
|
|
6
6
|
"homepage": "https://crossbind.dev/ports/zlib/",
|