update
XuAPI
pub fn update(d int, data &string) intPurpose
Execute update.
Parameters
dint- d (int)
data&string- data (read-only borrow; caller keeps the original; type &string)
Returns
int — a value of this type
#hash/adler32Adler-32.
updatepub fn update(d int, data &string) intExecute update.
d intdata &stringint — a value of this type
checksumpub fn checksum(data &string) intCompute the 32-bit checksum of the data.
data &stringint — a value of this type
struct Digestpub struct Digest {
pub s int
}Adler32 Cryptographic hash digest state context.
s intnewpub fn new() DigestConstruct a new value of this type.
No arguments are required.
Digest — a value of this type
($&Digest) writepub fn (d $&Digest) write(p &string) intOperation on $&Digest: write data and return the byte count.
d $&DigestDigest instance used by this call (exclusive borrow).p &stringint — bytes written
(&Digest) sumpub fn (d &Digest) sum() intOperation on &Digest: compute a digest (often lowercase hex).
d &DigestDigest instance used by this call (borrow).int — a value of this type
(&Digest) sizepub fn (d &Digest) size() intOperation on &Digest: return the size.
d &DigestDigest instance used by this call (borrow).int — a value of this type
($&Digest) resetpub fn (d $&Digest) reset()Operation on $&Digest: clear internal state so the value can be reused.
d $&DigestDigest instance used by this call (exclusive borrow).This call does not return a value.