record-checksum ( lines source-file -- ) (original) (raw)
record-checksum ( lines source-file -- )
Factor handbook » The implementation » Source files
Prev: | source-file |
---|---|
Next: | record-definitions ( source-file -- ) |
Vocabulary
source-files
Inputs
lines | a sequence of strings |
---|---|
source-file | a source-file |
Outputs
None
Word description
Records the CRC32 checksum of the source file's contents.
Notes
Calling this word directly is not necessary in most cases. Higher-level words call it automatically.
Definition
USING: accessors checksums checksums.crc32 kernel ;
: record-checksum ( lines source-file -- )
[ crc32 checksum-lines ] dip checksum<< ;