Function: image-dired-contents-sha1
image-dired-contents-sha1 is a byte-compiled function defined in
image-dired-util.el.gz.
Signature
(image-dired-contents-sha1 FILENAME)
Documentation
Compute the SHA-1 of the first 4KiB of FILENAME's contents.
Source Code
;; Defined in /usr/src/emacs/lisp/image/image-dired-util.el.gz
(defun image-dired-contents-sha1 (filename)
"Compute the SHA-1 of the first 4KiB of FILENAME's contents."
(with-temp-buffer
(insert-file-contents-literally filename nil 0 4096)
(sha1 (current-buffer))))