Skip to content

Instantly share code, notes, and snippets.

/tail pos? Secret

Created August 19, 2014 00:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/2ae999b3fd0f103e6655 to your computer and use it in GitHub Desktop.
Save anonymous/2ae999b3fd0f103e6655 to your computer and use it in GitHub Desktop.
(loop []
(let [read-bytes (.read din stream-buf 0 0xFFF)]
(if (= -1 read-bytes)
nil
(do (.write baos 0 read-bytes)
(recur)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment