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

Libqb refactor #591

Merged
merged 10 commits into from
Dec 19, 2024
Merged

Libqb refactor #591

merged 10 commits into from
Dec 19, 2024

Conversation

a740g
Copy link
Contributor

@a740g a740g commented Dec 15, 2024

This PR consolidates all hashing, compression, and encoding functions into a single directory: ./internal/c/parts/data/.

The _DEFLATE$ function now supports an optional compression level parameter, ranging from 0 (fastest, least compression) to 10 (slowest, best compression).

_DEFLATE$(dataToCompress$[, compressionLevel&])

Two new functions have been introduced to handle Base64 encoding and decoding. This is implemented using the high-speed MODP_B64 library from the Google Chromium Project.

_BASE64ENCODE$(stringToEncode$)
_BASE64DECODE$(stringToDecode$)

Update: Includes fix by @mkilgore for error: arithmetic on a pointer to void and add test that occurs when using _MEMGET/_MEMPUT with $CHECKING:OFF.

@a740g a740g added the enhancement New feature or request label Dec 15, 2024
@a740g a740g self-assigned this Dec 15, 2024
@a740g a740g merged commit 858f919 into QB64-Phoenix-Edition:main Dec 19, 2024
4 checks passed
@a740g a740g deleted the libqb-refactor branch December 19, 2024 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants