Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add compress and uncompress utility methods #9

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

fraya
Copy link
Member

@fraya fraya commented Oct 9, 2024

Add utility methods compress, uncompress and documentation.

fraya added 2 commits June 2, 2024 17:52
- Add basic constants of zlib.
- Add conditions to replace numeric code errors.
- Add the utility methods 'zlib-compress' and 'zlib-uncompress'.
- Use 'compress2' binding method of zlib to pass compression level.
- Add basic test of compress/decompress.
@fraya fraya requested a review from cgay October 9, 2024 08:06
Copy link
Member

@waywardmonkeys waywardmonkeys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't be using strings / c-strings / etc in this way but rather something like what I did in the leveldb bindings: https://github.com/dylan-foundry/leveldb-dylan

Using byte-storage-address will work for a couple of types, I don't recall the full details at the moment.

But at any rate, the byte data shouldn't be stored into regular strings.

@waywardmonkeys
Copy link
Member

(If you need help with how to do that stuff, let me me know here or elsewhere and I'll find the time to help you figure it out.)

@fraya
Copy link
Member Author

fraya commented Oct 10, 2024

Thank you for your support. I'll read leveldb-dylan and ask you for help later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants