Skip to content

Support CRC32 in JRuby#128

Open
olleolleolle wants to merge 2 commits into
ruby:masterfrom
olleolleolle:add-a-java-crc32
Open

Support CRC32 in JRuby#128
olleolleolle wants to merge 2 commits into
ruby:masterfrom
olleolleolle:add-a-java-crc32

Conversation

@olleolleolle

@olleolleolle olleolleolle commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

This PR supports CRC32 in the JRuby extension.

Following #127

Thanks, @headius. Thanks, @kares.

@olleolleolle olleolleolle requested a review from knu as a code owner June 16, 2026 06:52
@olleolleolle olleolleolle marked this pull request as draft June 16, 2026 06:55
@olleolleolle olleolleolle force-pushed the add-a-java-crc32 branch 2 times, most recently from 4a5d11d to c06110b Compare June 16, 2026 07:17
@olleolleolle olleolleolle marked this pull request as ready for review June 16, 2026 07:20

@headius headius left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM 👍

Use java.util.zip.CRC32
Tests cover: byte order, digest/block length, empty input, null and
high bytes (unsigned masking), full lookup table, incremental vs
one-shot, clone independence, reset, non-destructive digest, digest!
state reset, and initialize_copy frozen-destination enforcement.
@olleolleolle

Copy link
Copy Markdown
Contributor Author

@headius I updated this PR to also avoid deprecation warnings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants