mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 08:38:14 +01:00
Rename the adler struct to adler32.
This commit is contained in:
1 parent
f9cea5c17c
commit
74f3b76b09
4 files changed
+33
-33
No files matched your search
@@ -20,7 +20,7 @@ pub error "TODO: unsupported zlib preset dictionary"
|
||||
|
||||
pub struct zlib_decoder?(
|
||||
dec decoder,
|
||||
adler adler,
|
||||
adler adler32,
|
||||
)
|
||||
|
||||
pub func zlib_decoder.decode?(dst writer1, src reader1)() {
|
||||
@@ -43,11 +43,11 @@ pub func zlib_decoder.decode?(dst writer1, src reader1)() {
|
||||
}
|
||||
|
||||
// TODO: drop the '?' but still generate puffs_flate_adler_initialize?
|
||||
pri struct adler?(
|
||||
pri struct adler32?(
|
||||
state u32 = 1,
|
||||
)
|
||||
|
||||
pri func adler.update(x[] u8)(checksum u32) {
|
||||
pri func adler32.update(x[] u8)(checksum u32) {
|
||||
// The Adler-32 checksum's magic 65521 and 5552 numbers are discussed in
|
||||
// RFC 1950.
|
||||
|
||||
|
||||
Reference in new issue
Block a user