mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-17 16:32:11 +01:00
Add a TODO about impure functions.
This commit is contained in:
1 parent
1c7a6792de
commit
36a93fa6b7
2 files changed
+2
No files matched your search
@@ -66,6 +66,7 @@ pri struct adler32?(
|
||||
state u32 = 1,
|
||||
)
|
||||
|
||||
// TODO: add a ! as this function is impure.
|
||||
pri func adler32.update(x[] u8)(checksum u32) {
|
||||
// The Adler-32 checksum's magic 65521 and 5552 numbers are discussed in
|
||||
// RFC 1950.
|
||||
|
||||
@@ -24,6 +24,7 @@ pub struct lzw_decoder?(
|
||||
prefixes[4096] u16[..4095],
|
||||
)
|
||||
|
||||
// TODO: add a ! as this function is impure.
|
||||
pub func lzw_decoder.set_literal_width(lw u32[2..8] = 8)() {
|
||||
this.literal_width = in.lw
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user