Function: exif--direct-ascii-value
exif--direct-ascii-value is a byte-compiled function defined in
exif.el.gz.
Signature
(exif--direct-ascii-value VALUE BYTES LE)
Documentation
Make VALUE into a zero-terminated string.
VALUE is an integer representing BYTES characters.
Source Code
;; Defined in /usr/src/emacs/lisp/image/exif.el.gz
(defun exif--direct-ascii-value (value bytes le)
"Make VALUE into a zero-terminated string.
VALUE is an integer representing BYTES characters."
(with-temp-buffer
(set-buffer-multibyte nil)
(if le
(dotimes (i bytes)
(insert (logand (lsh value (* i -8)) 255)))
(dotimes (i bytes)
(insert (logand (lsh value (* (- (1- bytes) i) -8)) 255))))
(insert 0)
(buffer-string)))