-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Zlib primitives and library. (#1722)
This is libs and primitives for zlib, which means programs can use the deflate algorithm. It is not currently made available on embedded platforms because it uses too much memory and bloats the VM. This may become a config option at some time. It is not currently available on Windows or 32 bit Linux since the OSs tend to ship without those dynamic libraries, so it would prevent the Toit VM from booting. It works on MacOS and 64 bit Linux. Those platforms ship with the dynamic library. The Toit VM already has primitives to support run length encoding in a format that is compatible with zlib. Those are available on all platforms. The classes for that support have the read and write methods on the same object. In this case I chose not to do that because it can cause confusion as to the meaning of the close method. Therefore the zlib.Encoder and zlib.Decoder have a separate reader.
- Loading branch information
Erik Corry
authored
Aug 4, 2023
1 parent
f2f2c7a
commit 3e603f7
Showing
8 changed files
with
519 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.