Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@bjering
Created August 23, 2010 15:12
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 bjering/b5422d6b599e91835eed to your computer and use it in GitHub Desktop.
Save bjering/b5422d6b599e91835eed to your computer and use it in GitHub Desktop.
(defn encode
"Creates a buffer prepared for a Flash XMLSocket"
[#^String s]
(let
[byte-arr (.getBytes (str s "\0") "UTF-8")]
(ChannelBuffers/wrappedBuffer
byte-arr)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment