Skip to content

Instantly share code, notes, and snippets.

@pebblexe
Created March 20, 2017 20:38
Show Gist options
  • Save pebblexe/c46777f5882db86308a50322b57728a7 to your computer and use it in GitHub Desktop.
Save pebblexe/c46777f5882db86308a50322b57728a7 to your computer and use it in GitHub Desktop.
(defun write-raw-bytes (bytes)
(with-open-file (s "temp-bytes"
:direction :output
:if-exists :append
:element-type '(unsigned-byte 8))
(loop for byte in bytes do (write-byte byte s))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment