Function: f-read-bytes
f-read-bytes is a byte-compiled function defined in f.el.
Signature
(f-read-bytes PATH &optional BEG END)
Documentation
Read binary data from PATH.
Return the binary data as unibyte string. The optional second and third arguments BEG and END specify what portion of the file to read.
Source Code
;; Defined in ~/.emacs.d/elpa/f-20241003.1131/f.el
;;;; I/O
(defun f-read-bytes (path &optional beg end)
"Read binary data from PATH.
Return the binary data as unibyte string. The optional second
and third arguments BEG and END specify what portion of the file
to read."
(with-temp-buffer
(set-buffer-multibyte nil)
(setq buffer-file-coding-system 'binary)
(insert-file-contents-literally path nil beg end)
(buffer-substring-no-properties (point-min) (point-max))))