checksum-lines ( lines checksum -- value )
Factor handbook > Input and output > Checksums

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


Vocabulary
checksums

Inputs and outputs
linesa sequence of sequences of bytes
checksuma checksum specifier
valuea byte-array


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

Examples
USING: checksums checksums.crc32 prettyprint ; { "Take me out to the ball game" "Take me out with the crowd" } crc32 checksum-lines .
B{ 111 205 9 27 }


Definition

GENERIC: checksum-lines ( lines checksum -- value )


Methods