(slurp-bytes x)
Slurp the bytes from a slurpable thing. Lifted from: http://stackoverflow.com/a/26372677/387927
Slurp the bytes from a slurpable thing. Lifted from: http://stackoverflow.com/a/26372677/387927
(split-emit-output-stream split-char emit-fn)
(split-emit-output-stream split-char emit-fn close-fn)
Creates a java.io.OutputStream that acculates bytes until the specified character is met or until close are called. When one of these events occur, it emits the accumulated bytes to the provided function. An additional function can optionally be provided to be called after the OutputStream has been closed.
Creates a java.io.OutputStream that acculates bytes until the specified character is met or until close are called. When one of these events occur, it emits the accumulated bytes to the provided function. An additional function can optionally be provided to be called after the OutputStream has been closed.
(string-bytes-size string encoding)
Get the size of a string in bytes, for the provided encoding. Returns -1 if the encoding is unknown, and logs an error.
Get the size of a string in bytes, for the provided encoding. Returns -1 if the encoding is unknown, and logs an error.
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |