Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Java
/ crc32
Method
crc32
src/main/java/com/thealgorithms/others/CRC32.java:16–18 ·
view source on GitHub ↗
(String str)
Source
from the content-addressed store, hash-verified
14
}
15
16
public
static
int
crc32(String str) {
17
return
crc32(str.getBytes());
18
}
19
20
public
static
int
crc32(byte[] data) {
21
BitSet bitSet = BitSet.valueOf(data);
Callers
1
main
Method · 0.95
Calls
2
get
Method · 0.45
reverse
Method · 0.45
Tested by
no test coverage detected