checksum-bytes ( bytes checksum -- value )
Factor handbook » Input and output » Checksums

Prev:checksum
Next:checksum-stream ( stream checksum -- value )


Vocabulary
checksums

Inputs
bytesa sequence of bytes
checksuma checksum specifier


Outputs
valuea byte-array


Generic word contract
Computes the checksum of all data in a sequence.

Examples
USING: checksums checksums.crc32 prettyprint ; B{ 1 10 100 } crc32 checksum-bytes .
B{ 78 179 254 238 }


Definition

GENERIC: checksum-bytes ( bytes checksum -- value )


Methods